﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head lang="en">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<link href='http://meftun-deneme.blogspot.com/favicon.ico' rel='icon' type='image/x-icon'/>
	<title>iView&trade; v2.0 (jQuery) | MeftunMede.Blogspot.com</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta property="og:description" content="iView animasyonlu başlıklar, duyarlı düzeni ve (Video iFrame) slider gibi HTML Elementleri ile jQuery image slider kullanımı kolaydır. Kolayca slaytlar ve başlıklar sınırsız sayıda ekleyebilirsiniz. image slider, resim galerisi, afiş rotator, banner reklamları, hatta sunum olarak kullanın." />
<meta property="article:tag" content="banner rotator" />
<meta property="article:tag" content="creative" />
<meta property="article:tag" content="effects" />
<meta property="article:tag" content="gallery" />
<meta property="article:tag" content="image" />
<meta property="article:tag" content="jquery" />
<meta property="article:tag" content="mobile" />
<meta property="article:tag" content="photoslider" />
<meta property="article:tag" content="plugin" />
<meta property="article:tag" content="responsive" />
<meta property="article:tag" content="showcase" />
<meta property="article:tag" content="slider" />
<meta property="article:tag" content="slideshow" />
<meta property="article:tag" content="transition effects" />
<meta property="article:tag" content="video" />
<meta property="article:section" content="jQuery" />
<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<style type="text/css">
body{background:url(http://2.bp.blogspot.com/-M7AzMn_MykE/U5xzHLBn3bI/AAAAAAAAAuo/xbfBIO9M4BI/s1600/bckg.jpg) no-repeat 0 0 transparent;font-family:Ubuntu, Tahoma;line-height:1;color:#FFF;font-size:9pt;cursor:default;border:0;outline:0;vertical-align:baseline;margin:0;padding:0;}
a{text-decoration:none;cursor:pointer;color:#d0d9de;}
a:hover{color:#FFF;}
#cont{width:100%;height:100%;position:absolute;top:0;left:0;z-index:70;overflow:auto;}
.copy{text-shadow:#111 1px 1px 0;text-align:center;line-height:150%;padding:10px 0;}
#header{z-index:10000;height:37px;line-height:37px;padding-bottom:2px;color:#DDD;text-shadow:0 -1px #000;background:url(http://1.bp.blogspot.com/-DUyJveV58a4/U5xzddubnbI/AAAAAAAAAwg/0GadPX_hDDo/s1600/topbar.png) repeat-x scroll 0 0 transparent;margin-bottom:20px;}
#header .container{width:1004px;margin-left:auto;margin-right:auto;}
#header a{line-height:36px;}
#header ul{list-style:none;margin:0;}
#header h1{float:left;font-size:16px;}
#header h1,#header h1 a{color:#eee;margin:0;}
#header h1 a{display:block;text-decoration:none;}
#header h1 a:hover{color:#fff;}
#header #nav{float:right;border-left:1px solid rgba(255,255,255,0.05);border-right:1px solid #111;}
#header #nav a{height:36px;display:block;color:#d0d9de;border-left:1px solid #191919;border-right:1px solid rgba(255,255,255,0.05);text-decoration:none;cursor:pointer;padding:0 15px;}
#header #nav a:hover{background:url(http://4.bp.blogspot.com/-Ejz6cG8JMLU/U5xzdUJaFFI/AAAAAAAAAwk/1t3KEY2f6ls/s1600/topbar-hover.png);}
#header #nav li.active a{background:url(http://1.bp.blogspot.com/-p8uBEqBMFeA/U5xzc6QLsGI/AAAAAAAAAwc/Ij4yQQfRNrQ/s1600/topbar-active.png);border-right:0;padding-right:16px;}
#header #nav li{float:left;}
.mef a{text-decoration:none;font-family:Ubuntu,Arial,Helvetica,sans-serif;color:#1BC3F8;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;-ms-transition:.5s;transition:.5s;padding:2px 4px;}
.mef a:hover{background:#2882b7;font-family:Ubuntu,Arial,Helvetica,sans-serif;color:#fff;}
.iviewSlider{overflow:hidden;}
#iview-timer{position:absolute;z-index:100;border-radius:5px;cursor:pointer;}
#iview-timer div{border-radius:3px;}
.iview-directionNav a{position:absolute;top:45%;z-index:9;cursor:pointer;}
.iview-prevNav{left:0;}
.iview-nextNav{right:0;}
.iview-controlNav{position:absolute;z-index:9;}
.iview-controlNav a{z-index:9;cursor:pointer;}
.iview-controlNav a.active{font-weight:700;}
.iview-controlNav .iview-items ul{list-style:none;}
.iview-controlNav .iview-items ul li{display:inline;position:relative;}
.container{display:block;margin:0 auto;}
#iview{display:block;width:728px;background:rgba(0,0,0,1);position:relative;overflow:hidden;-webkit-box-shadow:0 38px 30px -18px rgba(0,0,0,0.5);-moz-box-shadow:0 38px 30px -18px rgba(0,0,0,0.5);box-shadow:0 38px 30px -18px rgba(0,0,0,0.5);margin:40px auto;padding:5px;}
#iview .iviewSlider{display:block;width:728px;height:90px;margin:0 auto;}
#iview2{display:block;width:300px;background:rgba(0,0,0,1);position:relative;overflow:hidden;-webkit-box-shadow:0 38px 30px -18px rgba(0,0,0,0.5);-moz-box-shadow:0 38px 30px -18px rgba(0,0,0,0.5);box-shadow:0 38px 30px -18px rgba(0,0,0,0.5);margin:40px auto;padding:5px;}
#iview2 .iviewSlider{display:block;width:300px;height:600px;margin:0 auto;}
.iview div.iview-directionNav{position:absolute;top:37%;left:0;z-index:9;width:100%;}
#iview2 div.iview-directionNav{top:49%;}
.iview div.iview-directionNav a{display:block;cursor:pointer;position:absolute;width:27px;height:27px;background-image:url(http://4.bp.blogspot.com/-mJNhnH4WDI0/U5xzJ7EtaCI/AAAAAAAAAu4/CRIlxhQ9xwU/s1600/bg_direction_nav_white.png);text-indent:-9999px;-webkit-transition:left .3s ease-in-out;-webkit-transition-property:left,right;-moz-transition:left .3s ease-in-out;-moz-transition-property:left,right;-o-transition:left .3s ease-in-out;-o-transition-property:left,right;-ms-transition:left .3s ease-in-out;-ms-transition-property:left,right;transition:left .3s ease-in-out;transition-property:left,right;}
.iview div.iview-directionNav a.iview-nextNav{right:20px;background-position:27px 0;}
.iview div.iview-directionNav a.iview-prevNav{left:20px;background-position:0 0;}
#iview2 .iview-controlNav{position:absolute;bottom:30px;left:133px;}
#iview2 .iview-controlNav a{text-indent:-9999px;}
#iview2 .iview-controlNav a.iview-control{float:left;width:11px;height:11px;background:url(http://3.bp.blogspot.com/-y-6bGwOXYNs/U5xzQOnqM5I/AAAAAAAAAvI/uzf31OCxSk0/s1600/bullets_2.png) no-repeat 0 0;line-height:0;margin-right:7px;padding:0;}
#iview2 .iview-controlNav a.iview-control.active{background-position:0 -11px;}
#iview-timer,#iview-timer div{border-radius:10px;}
</style>		
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
(function(d){var l=/[\.\/]/,s=function(){},r=function(d,l){return d-l},v,C,E={n:{}},I=function(d,l){var s=C,G=Array.prototype.slice.call(arguments,2),B=I.listeners(d),k=0,P,E=[],J={},a=[],m=v;v=d;for(var f=C=0,L=B.length;f<L;f++)"zIndex"in B[f]&&(E.push(B[f].zIndex),0>B[f].zIndex&&(J[B[f].zIndex]=B[f]));for(E.sort(r);0>E[k];)if(P=J[E[k++]],a.push(P.apply(l,G)),C)return C=s,a;for(f=0;f<L;f++)if(P=B[f],"zIndex"in P)if(P.zIndex==E[k]){a.push(P.apply(l,G));if(C)break;do if(k++,(P=J[E[k]])&&a.push(P.apply(l,
G)),C)break;while(P)}else J[P.zIndex]=P;else if(a.push(P.apply(l,G)),C)break;C=s;v=m;return a.length?a:null};I.listeners=function(d){d=d.split(l);var s=E,v,r,B,k,C,I,J,a=[s],m=[];B=0;for(k=d.length;B<k;B++){J=[];C=0;for(I=a.length;C<I;C++)for(s=a[C].n,v=[s[d[B]],s["*"]],r=2;r--;)(s=v[r])&&(J.push(s),m=m.concat(s.f||[]));a=J}return m};I.on=function(d,r){for(var v=d.split(l),G=E,B=0,k=v.length;B<k;B++)G=G.n,!G[v[B]]&&(G[v[B]]={n:{}}),G=G[v[B]];G.f=G.f||[];B=0;for(k=G.f.length;B<k;B++)if(G.f[B]==r)return s;
G.f.push(r);return function(d){+d==+d&&(r.zIndex=+d)}};I.stop=function(){C=1};I.nt=function(d){return d?(new RegExp("(?:\\.|\\/|^)"+d+"(?:\\.|\\/|$)")).test(v):v};I.off=I.unbind=function(d,s){var v=d.split(l),r,B,k,C,I,J,a=[E];C=0;for(I=v.length;C<I;C++)for(J=0;J<a.length;J+=k.length-2){k=[J,1];r=a[J].n;if("*"!=v[C])r[v[C]]&&k.push(r[v[C]]);else for(B in r)r.hasOwnProperty(B)&&k.push(r[B]);a.splice.apply(a,k)}C=0;for(I=a.length;C<I;C++)for(r=a[C];r.n;){if(s){if(r.f){J=0;for(v=r.f.length;J<v;J++)if(r.f[J]==
s){r.f.splice(J,1);break}!r.f.length&&delete r.f}for(B in r.n)if(r.n.hasOwnProperty(B)&&r.n[B].f){k=r.n[B].f;J=0;for(v=k.length;J<v;J++)if(k[J]==s){k.splice(J,1);break}!k.length&&delete r.n[B].f}}else for(B in delete r.f,r.n)r.n.hasOwnProperty(B)&&r.n[B].f&&delete r.n[B].f;r=r.n}};I.once=function(d,l){var s=function(){var r=l.apply(this,arguments);I.unbind(d,s);return r};return I.on(d,s)};I.version="0.3.4";I.toString=function(){return"You are running Eve 0.3.4"};"undefined"!=typeof module&&module.exports?
module.exports=I:"undefined"!=typeof define?define("eve",[],function(){return I}):d.eve=I})(this);
(function(){function d(b){for(var h=0;h<K.length;h++)K[h].el.paper==b&&K.splice(h--,1)}function l(b,h,u,z,e,c){u=Q(u);var d,a,f,q,l,g,A=b.ms,y={},w={},s={};if(z)for(g=0,R=K.length;g<R;g++){var D=K[g];if(D.el.id==h.id&&D.anim==b){D.percent!=u?(K.splice(g,1),f=1):a=D;h.attr(D.totalOrigin);break}}else z=+w;g=0;for(var R=b.percents.length;g<R;g++){if(b.percents[g]==u||b.percents[g]>z*b.top){u=b.percents[g];l=b.percents[g-1]||0;A=A/b.top*(u-l);q=b.percents[g+1];d=b.anim[u];break}z&&h.attr(b.anim[b.percents[g]])}if(d){if(a)a.initstatus=
z,a.start=new Date-a.ms*z;else{for(var x in d)if(d[m](x)&&(sa[m](x)||h.paper.customAttributes[m](x)))switch(y[x]=h.attr(x),null==y[x]&&(y[x]=Xa[x]),w[x]=d[x],sa[x]){case S:s[x]=(w[x]-y[x])/A;break;case "colour":y[x]=k.getRGB(y[x]);g=k.getRGB(w[x]);s[x]={r:(g.r-y[x].r)/A,g:(g.g-y[x].g)/A,b:(g.b-y[x].b)/A};break;case "path":g=ja(y[x],w[x]);D=g[1];y[x]=g[0];s[x]=[];g=0;for(R=y[x].length;g<R;g++){s[x][g]=[0];for(var v=1,B=y[x][g].length;v<B;v++)s[x][g][v]=(D[g][v]-y[x][g][v])/A}break;case "transform":g=
h._;if(R=Ya(g[x],w[x]))for(y[x]=R.from,w[x]=R.to,s[x]=[],s[x].real=!0,g=0,R=y[x].length;g<R;g++)for(s[x][g]=[y[x][g][0]],v=1,B=y[x][g].length;v<B;v++)s[x][g][v]=(w[x][g][v]-y[x][g][v])/A;else R=h.matrix||new C,g={_:{transform:g.transform},getBBox:function(){return h.getBBox(1)}},y[x]=[R.a,R.b,R.c,R.d,R.e,R.f],Ha(g,w[x]),w[x]=g._.transform,s[x]=[(g.matrix.a-R.a)/A,(g.matrix.b-R.b)/A,(g.matrix.c-R.c)/A,(g.matrix.d-R.d)/A,(g.matrix.e-R.e)/A,(g.matrix.f-R.f)/A];break;case "csv":R=p(d[x])[n](W);D=p(y[x])[n](W);
if("clip-rect"==x)for(y[x]=D,s[x]=[],g=D.length;g--;)s[x][g]=(R[g]-y[x][g])/A;w[x]=R;break;default:for(R=[][H](d[x]),D=[][H](y[x]),s[x]=[],g=h.paper.customAttributes[x].length;g--;)s[x][g]=((R[g]||0)-(D[g]||0))/A}g=d.easing;x=k.easing_formulas[g];if(!x)if((x=p(g).match(Za))&&5==x.length){var L=x;x=function(b){return r(b,+L[1],+L[2],+L[3],+L[4],A)}}else x=$a;g=d.start||b.start||+new Date;D={anim:b,percent:u,timestamp:g,start:g+(b.del||0),status:0,initstatus:z||0,stop:!1,ms:A,easing:x,from:y,diff:s,
to:w,el:h,callback:d.callback,prev:l,next:q,repeat:c||b.times,origin:h.attr(),totalOrigin:e};K.push(D);if(z&&!a&&!f&&(D.stop=!0,D.start=new Date-A*z,1==K.length))return ta();f&&(D.start=new Date-D.ms*z);1==K.length&&Ia(ta)}eve("raphael.anim.start."+h.id,h,b)}}function s(b,h){var u=[],z={};this.ms=h;this.times=1;if(b){for(var e in b)b[m](e)&&(z[Q(e)]=b[e],u.push(Q(e)));u.sort(ab)}this.anim=z;this.top=u[u.length-1];this.percents=u}function r(b,h,u,z,e,c){function p(b,h){var u,z,e,c;e=b;for(z=0;8>z;z++){c=
((g*e+a)*e+d)*e-b;if($(c)<h)return e;u=(3*g*e+2*a)*e+d;if(1E-6>$(u))break;e-=c/u}u=0;z=1;e=b;if(e<u)return u;if(e>z)return z;for(;u<z;){c=((g*e+a)*e+d)*e;if($(c-b)<h)break;b>c?u=e:z=e;e=(z-u)/2+u}return e}var d=3*h,a=3*(z-h)-d,g=1-d-a,n=3*u,f=3*(e-u)-n,q=1-n-f;return function(b,h){var u=p(b,h);return((q*u+f)*u+n)*u}(b,1/(200*c))}function v(){return this.x+e+this.y+e+this.width+" \u00d7 "+this.height}function C(b,h,u,z,e,c){null!=b?(this.a=+b,this.b=+h,this.c=+u,this.d=+z,this.e=+e,this.f=+c):(this.a=
1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function E(b,h,u){b=k._path2curve(b);h=k._path2curve(h);for(var z,e,c,d,p,a,g,n,f,q,m=u?0:[],l=0,A=b.length;l<A;l++){var y=b[l];if("M"==y[0])z=p=y[1],e=a=y[2];else{"C"==y[0]?(f=[z,e].concat(y.slice(1)),z=f[6],e=f[7]):(f=[z,e,z,e,p,a,p,a],z=p,e=a);for(var y=0,w=h.length;y<w;y++){var H=h[y];if("M"==H[0])c=g=H[1],d=n=H[2];else{"C"==H[0]?(q=[c,d].concat(H.slice(1)),c=q[6],d=q[7]):(q=[c,d,c,d,g,n,g,n],c=g,d=n);var x=f,s=q,H=u,r=k.bezierBBox(x),v=k.bezierBBox(s);
if(k.isBBoxIntersect(r,v)){for(var r=V.apply(0,x),v=V.apply(0,s),r=~~(r/5),v=~~(v/5),B=[],L=[],C={},F=H?0:[],N=0;N<r+1;N++){var G=k.findDotsAtSegment.apply(k,x.concat(N/r));B.push({x:G.x,y:G.y,t:N/r})}for(N=0;N<v+1;N++)G=k.findDotsAtSegment.apply(k,s.concat(N/v)),L.push({x:G.x,y:G.y,t:N/v});for(N=0;N<r;N++)for(x=0;x<v;x++){var E=B[N],S=B[N+1],s=L[x],G=L[x+1],Y=.001>$(S.x-E.x)?"y":"x",I=.001>$(G.x-s.x)?"y":"x",O;O=E.x;var K=E.y,J=S.x,U=S.y,M=s.x,P=s.y,Q=G.x,da=G.y;if(D(O,J)<X(M,Q)||X(O,J)>D(M,Q)||
D(K,U)<X(P,da)||X(K,U)>D(P,da))O=void 0;else{var W=(O*U-K*J)*(M-Q)-(O-J)*(M*da-P*Q),Z=(O*U-K*J)*(P-da)-(K-U)*(M*da-P*Q),T=(O-J)*(P-da)-(K-U)*(M-Q);if(T){var W=W/T,Z=Z/T,T=+W.toFixed(2),aa=+Z.toFixed(2);O=T<+X(O,J).toFixed(2)||T>+D(O,J).toFixed(2)||T<+X(M,Q).toFixed(2)||T>+D(M,Q).toFixed(2)||aa<+X(K,U).toFixed(2)||aa>+D(K,U).toFixed(2)||aa<+X(P,da).toFixed(2)||aa>+D(P,da).toFixed(2)?void 0:{x:W,y:Z}}else O=void 0}O&&C[O.x.toFixed(4)]!=O.y.toFixed(4)&&(C[O.x.toFixed(4)]=O.y.toFixed(4),E=E.t+$((O[Y]-
E[Y])/(S[Y]-E[Y]))*(S.t-E.t),s=s.t+$((O[I]-s[I])/(G[I]-s[I]))*(G.t-s.t),0<=E&&1>=E&&0<=s&&1>=s&&(H?F++:F.push({x:O.x,y:O.y,t1:E,t2:s})))}H=F}else H=H?0:[];if(u)m+=H;else{r=0;for(v=H.length;r<v;r++)H[r].segment1=l,H[r].segment2=y,H[r].bez1=f,H[r].bez2=q;m=m.concat(H)}}}}}return m}function I(b,h,u,z,e,c,d,p,a){if(!(0>a||V(b,h,u,z,e,c,d,p)<a)){var g=.5,n=1-g,f;for(f=V(b,h,u,z,e,c,d,p,n);.01<$(f-a);)g/=2,n+=(f<a?1:-1)*g,f=V(b,h,u,z,e,c,d,p,n);return n}}function V(b,h,u,z,e,c,d,p,a){null==a&&(a=1);a=(1<
a?1:0>a?0:a)/2;for(var g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],n=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,q=0;12>q;q++)var m=a*g[q]+a,l=m*(m*(-3*b+9*u-9*e+3*d)+6*b-12*u+6*e)-3*b+3*u,m=m*(m*(-3*h+9*z-9*c+3*p)+6*h-12*z+6*c)-3*h+3*z,f=f+n[q]*y.sqrt(l*l+m*m);return a*f}function Z(b,h){for(var u=[],z=0,e=b.length;e-2*!h>z;z+=2){var c=[{x:+b[z-2],y:+b[z-1]},{x:+b[z],y:+b[z+1]},{x:+b[z+2],y:+b[z+3]},{x:+b[z+4],y:+b[z+5]}];h?z?
e-4==z?c[3]={x:+b[0],y:+b[1]}:e-2==z&&(c[2]={x:+b[0],y:+b[1]},c[3]={x:+b[2],y:+b[3]}):c[0]={x:+b[e-2],y:+b[e-1]}:e-4==z?c[3]=c[2]:z||(c[0]={x:+b[z],y:+b[z+1]});u.push(["C",(-c[0].x+6*c[1].x+c[2].x)/6,(-c[0].y+6*c[1].y+c[2].y)/6,(c[1].x+6*c[2].x-c[3].x)/6,(c[1].y+6*c[2].y-c[3].y)/6,c[2].x,c[2].y])}return u}function aa(){return this.hex}function G(b,h,u){function z(){var e=Array.prototype.slice.call(arguments,0),d=e.join("\u2400"),p=z.cache=z.cache||{},a=z.count=z.count||[];if(p[m](d)){a:for(var e=
a,a=d,g=0,n=e.length;g<n;g++)if(e[g]===a){e.push(e.splice(g,1)[0]);break a}return u?u(p[d]):p[d]}1E3<=a.length&&delete p[a.shift()];a.push(d);p[d]=b[c](h,e);return u?u(p[d]):p[d]}return z}function B(b){if(Object(b)!==b)return b;var h=new b.constructor,u;for(u in b)b[m](u)&&(h[u]=B(b[u]));return h}function k(b){if(k.is(b,"function"))return P?b():eve.on("raphael.DOMload",b);if(k.is(b,U))return k._engine.create[c](k,b.splice(0,3+k.is(b[0],S))).add(b);var h=Array.prototype.slice.call(arguments,0);if(k.is(h[h.length-
1],"function")){var u=h.pop();return P?u.call(k._engine.create[c](k,h)):eve.on("raphael.DOMload",function(){u.call(k._engine.create[c](k,h))})}return k._engine.create[c](k,arguments)}k.version="2.1.0";k.eve=eve;var P,W=/[, ]+/,J={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},a=/\{(\d+)\}/g,m="hasOwnProperty",f={doc:document,win:window},L=Object.prototype[m].call(f.win,"Raphael"),x=f.win.Raphael,N=function(){this.ca=this.customAttributes={}},F,c="apply",H="concat",w="createTouch"in f.doc,e=" ",
p=String,n="split",q="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[n](e),g={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},A=p.prototype.toLowerCase,y=Math,D=y.max,X=y.min,$=y.abs,O=y.pow,Y=y.PI,S="number",U="array",da=Object.prototype.toString;k._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var bb=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,
cb={NaN:1,Infinity:1,"-Infinity":1},Za=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,ua=y.round,Q=parseFloat,ea=parseInt,Ja=p.prototype.toUpperCase,Xa=k._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",
r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},sa=k._availableAnimAttrs={blur:S,"clip-rect":"csv",cx:S,cy:S,fill:"colour","fill-opacity":S,"font-size":S,height:S,opacity:S,path:"path",r:S,rx:S,ry:S,stroke:"colour","stroke-opacity":S,"stroke-width":S,transform:"transform",width:S,x:S,y:S},va=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,
db={hs:1,rg:1},eb=/,?([achlmqrstvxz]),?/gi,fb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
gb=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,Ka=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
k._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/;var ka={},ab=function(b,h){return Q(b)-Q(h)},hb=function(){},$a=function(b){return b},wa=k._rectPath=function(b,h,u,z,e){return e?[["M",b+e,h],["l",u-2*e,0],["a",e,e,0,0,1,
e,e],["l",0,z-2*e],["a",e,e,0,0,1,-e,e],["l",2*e-u,0],["a",e,e,0,0,1,-e,-e],["l",0,2*e-z],["a",e,e,0,0,1,e,-e],["z"]]:[["M",b,h],["l",u,0],["l",0,z],["l",-u,0],["z"]]},La=function(b,h,u,z){null==z&&(z=u);return[["M",b,h],["m",0,-z],["a",u,z,0,1,1,0,2*z],["a",u,z,0,1,1,0,-2*z],["z"]]},la=k._getPath={path:function(b){return b.attr("path")},circle:function(b){b=b.attrs;return La(b.cx,b.cy,b.r)},ellipse:function(b){b=b.attrs;return La(b.cx,b.cy,b.rx,b.ry)},rect:function(b){b=b.attrs;return wa(b.x,b.y,
b.width,b.height,b.r)},image:function(b){b=b.attrs;return wa(b.x,b.y,b.width,b.height)},text:function(b){b=b._getBBox();return wa(b.x,b.y,b.width,b.height)}},xa=k.mapPath=function(b,h){if(!h)return b;var u,z,e,c,d,p,a;b=ja(b);e=0;for(d=b.length;e<d;e++)for(a=b[e],c=1,p=a.length;c<p;c+=2)u=h.x(a[c],a[c+1]),z=h.y(a[c],a[c+1]),a[c]=u,a[c+1]=z;return b};k._g=f;k.type=f.win.SVGAngle||f.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==k.type){var ya=
f.doc.createElement("div"),ma;ya.innerHTML='<v:shape adj="1"/>';ma=ya.firstChild;ma.style.behavior="url(#default#VML)";if(!ma||"object"!=typeof ma.adj)return k.type="";ya=null}k.svg=!(k.vml="VML"==k.type);k._Paper=N;k.fn=F=N.prototype=k.prototype;k._id=0;k._oid=0;k.is=function(b,h){h=A.call(h);return"finite"==h?!cb[m](+b):"array"==h?b instanceof Array:"null"==h&&null===b||h==typeof b&&null!==b||"object"==h&&b===Object(b)||"array"==h&&Array.isArray&&Array.isArray(b)||da.call(b).slice(8,-1).toLowerCase()==
h};k.angle=function(b,h,u,z,e,c){return null==e?(b-=u,h-=z,b||h?(180*y.atan2(-h,-b)/Y+540)%360:0):k.angle(b,h,e,c)-k.angle(u,z,e,c)};k.rad=function(b){return b%360*Y/180};k.deg=function(b){return 180*b/Y%360};k.snapTo=function(b,h,u){u=k.is(u,"finite")?u:10;if(k.is(b,U))for(var z=b.length;z--;){if($(b[z]-h)<=u)return b[z]}else{b=+b;z=h%b;if(z<u)return h-z;if(z>b-u)return h-z+b}return h};k.createUUID=function(b,h){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(b,h).toUpperCase()}}(/[xy]/g,
function(b){var h=16*y.random()|0;return("x"==b?h:h&3|8).toString(16)});k.setWindow=function(b){eve("raphael.setWindow",k,f.win,b);f.win=b;f.doc=f.win.document;k._engine.initWin&&k._engine.initWin(f.win)};var na=function(b){if(k.vml){var h=/^\s+|\s+$/g,u;try{var z=new ActiveXObject("htmlfile");z.write("<body>");z.close();u=z.body}catch(e){u=createPopup().document.body}var c=u.createTextRange();na=G(function(b){try{u.style.color=p(b).replace(h,"");var z=c.queryCommandValue("ForeColor");return"#"+("000000"+
((z&255)<<16|z&65280|(z&16711680)>>>16).toString(16)).slice(-6)}catch(e){return"none"}})}else{var d=f.doc.createElement("i");d.title="Rapha\u00ebl Colour Picker";d.style.display="none";f.doc.body.appendChild(d);na=G(function(b){d.style.color=b;return f.doc.defaultView.getComputedStyle(d,"").getPropertyValue("color")})}return na(b)},ib=function(){return"hsb("+[this.h,this.s,this.b]+")"},jb=function(){return"hsl("+[this.h,this.s,this.l]+")"},Ma=function(){return this.hex},Na=function(b,h,u){null==h&&
k.is(b,"object")&&"r"in b&&"g"in b&&"b"in b&&(u=b.b,h=b.g,b=b.r);null==h&&k.is(b,"string")&&(u=k.getRGB(b),b=u.r,h=u.g,u=u.b);if(1<b||1<h||1<u)b/=255,h/=255,u/=255;return[b,h,u]},Oa=function(b,h,u,z){b*=255;h*=255;u*=255;b={r:b,g:h,b:u,hex:k.rgb(b,h,u),toString:Ma};k.is(z,"finite")&&(b.opacity=z);return b};k.color=function(b){var h;k.is(b,"object")&&"h"in b&&"s"in b&&"b"in b?(h=k.hsb2rgb(b),b.r=h.r,b.g=h.g,b.b=h.b,b.hex=h.hex):k.is(b,"object")&&"h"in b&&"s"in b&&"l"in b?(h=k.hsl2rgb(b),b.r=h.r,b.g=
h.g,b.b=h.b,b.hex=h.hex):(k.is(b,"string")&&(b=k.getRGB(b)),k.is(b,"object")&&"r"in b&&"g"in b&&"b"in b?(h=k.rgb2hsl(b),b.h=h.h,b.s=h.s,b.l=h.l,h=k.rgb2hsb(b),b.v=h.b):(b={hex:"none"},b.r=b.g=b.b=b.h=b.s=b.v=b.l=-1));b.toString=Ma;return b};k.hsb2rgb=function(b,h,u,z){this.is(b,"object")&&"h"in b&&"s"in b&&"b"in b&&(u=b.b,h=b.s,b=b.h,z=b.o);var e,c,d;b=360*b%360/60;d=u*h;h=d*(1-$(b%2-1));u=e=c=u-d;b=~~b;u+=[d,h,0,0,h,d][b];e+=[h,d,d,h,0,0][b];c+=[0,0,h,d,d,h][b];return Oa(u,e,c,z)};k.hsl2rgb=function(b,
h,u,z){this.is(b,"object")&&"h"in b&&"s"in b&&"l"in b&&(u=b.l,h=b.s,b=b.h);if(1<b||1<h||1<u)b/=360,h/=100,u/=100;var e,c,d;b=360*b%360/60;d=2*h*(.5>u?u:1-u);h=d*(1-$(b%2-1));u=e=c=u-d/2;b=~~b;u+=[d,h,0,0,h,d][b];e+=[h,d,d,h,0,0][b];c+=[0,0,h,d,d,h][b];return Oa(u,e,c,z)};k.rgb2hsb=function(b,h,u){u=Na(b,h,u);b=u[0];h=u[1];u=u[2];var z,e;z=D(b,h,u);e=z-X(b,h,u);b=((0==e?0:z==b?(h-u)/e:z==h?(u-b)/e+2:(b-h)/e+4)+360)%6*60/360;return{h:b,s:0==e?0:e/z,b:z,toString:ib}};k.rgb2hsl=function(b,h,u){u=Na(b,
h,u);b=u[0];h=u[1];u=u[2];var z,e,c;z=D(b,h,u);e=X(b,h,u);c=z-e;b=((0==c?0:z==b?(h-u)/c:z==h?(u-b)/c+2:(b-h)/c+4)+360)%6*60/360;z=(z+e)/2;return{h:b,s:0==c?0:.5>z?c/(2*z):c/(2-2*z),l:z,toString:jb}};k._path2string=function(){return this.join(",").replace(eb,"$1")};k._preload=function(b,h){var u=f.doc.createElement("img");u.style.cssText="position:absolute;left:-9999em;top:-9999em";u.onload=function(){h.call(this);this.onload=null;f.doc.body.removeChild(this)};u.onerror=function(){f.doc.body.removeChild(this)};
f.doc.body.appendChild(u);u.src=b};k.getRGB=G(function(b){if(!b||(b=p(b)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:aa};if("none"==b)return{r:-1,g:-1,b:-1,hex:"none",toString:aa};!db[m](b.toLowerCase().substring(0,2))&&"#"!=b.charAt()&&(b=na(b));var h,u,z,e,c,d;if(b=b.match(bb)){b[2]&&(z=ea(b[2].substring(5),16),u=ea(b[2].substring(3,5),16),h=ea(b[2].substring(1,3),16));b[3]&&(z=ea((c=b[3].charAt(3))+c,16),u=ea((c=b[3].charAt(2))+c,16),h=ea((c=b[3].charAt(1))+c,16));b[4]&&(d=
b[4][n](va),h=Q(d[0]),"%"==d[0].slice(-1)&&(h*=2.55),u=Q(d[1]),"%"==d[1].slice(-1)&&(u*=2.55),z=Q(d[2]),"%"==d[2].slice(-1)&&(z*=2.55),"rgba"==b[1].toLowerCase().slice(0,4)&&(e=Q(d[3])),d[3]&&"%"==d[3].slice(-1)&&(e/=100));if(b[5])return d=b[5][n](va),h=Q(d[0]),"%"==d[0].slice(-1)&&(h*=2.55),u=Q(d[1]),"%"==d[1].slice(-1)&&(u*=2.55),z=Q(d[2]),"%"==d[2].slice(-1)&&(z*=2.55),"deg"!=d[0].slice(-3)&&"\u00b0"!=d[0].slice(-1)||(h/=360),"hsba"==b[1].toLowerCase().slice(0,4)&&(e=Q(d[3])),d[3]&&"%"==d[3].slice(-1)&&
(e/=100),k.hsb2rgb(h,u,z,e);if(b[6])return d=b[6][n](va),h=Q(d[0]),"%"==d[0].slice(-1)&&(h*=2.55),u=Q(d[1]),"%"==d[1].slice(-1)&&(u*=2.55),z=Q(d[2]),"%"==d[2].slice(-1)&&(z*=2.55),"deg"!=d[0].slice(-3)&&"\u00b0"!=d[0].slice(-1)||(h/=360),"hsla"==b[1].toLowerCase().slice(0,4)&&(e=Q(d[3])),d[3]&&"%"==d[3].slice(-1)&&(e/=100),k.hsl2rgb(h,u,z,e);b={r:h,g:u,b:z,toString:aa};b.hex="#"+(16777216|z|u<<8|h<<16).toString(16).slice(1);k.is(e,"finite")&&(b.opacity=e);return b}return{r:-1,g:-1,b:-1,hex:"none",
error:1,toString:aa}},k);k.hsb=G(function(b,h,u){return k.hsb2rgb(b,h,u).hex});k.hsl=G(function(b,h,u){return k.hsl2rgb(b,h,u).hex});k.rgb=G(function(b,h,u){return"#"+(16777216|u|h<<8|b<<16).toString(16).slice(1)});k.getColor=function(b){b=this.getColor.start=this.getColor.start||{h:0,s:1,b:b||.75};var h=this.hsb2rgb(b.h,b.s,b.b);b.h+=.075;1<b.h&&(b.h=0,b.s-=.2,0>=b.s&&(this.getColor.start={h:0,s:1,b:b.b}));return h.hex};k.getColor.reset=function(){delete this.start};k.parsePathString=function(b){if(!b)return null;
var h=fa(b);if(h.arr)return ca(h.arr);var u={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},e=[];k.is(b,U)&&k.is(b[0],U)&&(e=ca(b));e.length||p(b).replace(fb,function(b,h,c){var d=[];b=h.toLowerCase();c.replace(Ka,function(b,h){h&&d.push(+h)});"m"==b&&2<d.length&&(e.push([h][H](d.splice(0,2))),b="l",h="m"==h?"l":"L");if("r"==b)e.push([h][H](d));else for(;d.length>=u[b]&&(e.push([h][H](d.splice(0,u[b]))),u[b]););});e.toString=k._path2string;h.arr=ca(e);return e};k.parseTransformString=G(function(b){if(!b)return null;
var h=[];k.is(b,U)&&k.is(b[0],U)&&(h=ca(b));h.length||p(b).replace(gb,function(b,e,c){var d=[];A.call(e);c.replace(Ka,function(b,h){h&&d.push(+h)});h.push([e][H](d))});h.toString=k._path2string;return h});var fa=function(b){var h=fa.ps=fa.ps||{};h[b]?h[b].sleep=100:h[b]={sleep:100};setTimeout(function(){for(var u in h)h[m](u)&&u!=b&&(h[u].sleep--,!h[u].sleep&&delete h[u])});return h[b]};k.findDotsAtSegment=function(b,h,u,e,c,d,p,a,g){var n=1-g,f=O(n,3),q=O(n,2),m=g*g,l=m*g,k=f*b+3*q*g*u+3*n*g*g*c+
l*p,f=f*h+3*q*g*e+3*n*g*g*d+l*a,q=b+2*g*(u-b)+m*(c-2*u+b),l=h+2*g*(e-h)+m*(d-2*e+h),A=u+2*g*(c-u)+m*(p-2*c+u),m=e+2*g*(d-e)+m*(a-2*d+e);b=n*b+g*u;h=n*h+g*e;c=n*c+g*p;d=n*d+g*a;a=90-180*y.atan2(q-A,l-m)/Y;(q>A||l<m)&&(a+=180);return{x:k,y:f,m:{x:q,y:l},n:{x:A,y:m},start:{x:b,y:h},end:{x:c,y:d},alpha:a}};k.bezierBBox=function(b,h,u,e,c,d,a,p){k.is(b,"array")||(b=[b,h,u,e,c,d,a,p]);b=Pa.apply(null,b);return{x:b.min.x,y:b.min.y,x2:b.max.x,y2:b.max.y,width:b.max.x-b.min.x,height:b.max.y-b.min.y}};k.isPointInsideBBox=
function(b,h,u){return h>=b.x&&h<=b.x2&&u>=b.y&&u<=b.y2};k.isBBoxIntersect=function(b,h){var u=k.isPointInsideBBox;return u(h,b.x,b.y)||u(h,b.x2,b.y)||u(h,b.x,b.y2)||u(h,b.x2,b.y2)||u(b,h.x,h.y)||u(b,h.x2,h.y)||u(b,h.x,h.y2)||u(b,h.x2,h.y2)||(b.x<h.x2&&b.x>h.x||h.x<b.x2&&h.x>b.x)&&(b.y<h.y2&&b.y>h.y||h.y<b.y2&&h.y>b.y)};k.pathIntersection=function(b,h){return E(b,h)};k.pathIntersectionNumber=function(b,h){return E(b,h,1)};k.isPointInsidePath=function(b,h,u){var e=k.pathBBox(b);return k.isPointInsideBBox(e,
h,u)&&1==E(b,[["M",h,u],["H",e.x2+10]],1)%2};k._removedFactory=function(b){return function(){eve("raphael.log",null,"Rapha\u00ebl: you are calling to method \u201c"+b+"\u201d of removed object",b)}};var za=k.pathBBox=function(b){var h=fa(b);if(h.bbox)return h.bbox;if(!b)return{x:0,y:0,width:0,height:0,x2:0,y2:0};b=ja(b);for(var u=0,e=0,d=[],a=[],p,g=0,n=b.length;g<n;g++)p=b[g],"M"==p[0]?(u=p[1],e=p[2],d.push(u),a.push(e)):(u=Pa(u,e,p[1],p[2],p[3],p[4],p[5],p[6]),d=d[H](u.min.x,u.max.x),a=a[H](u.min.y,
u.max.y),u=p[5],e=p[6]);b=X[c](0,d);p=X[c](0,a);d=D[c](0,d);a=D[c](0,a);a={x:b,y:p,x2:d,y2:a,width:d-b,height:a-p};h.bbox=B(a);return a},ca=function(b){b=B(b);b.toString=k._path2string;return b},kb=k._pathToRelative=function(b){var h=fa(b);if(h.rel)return ca(h.rel);k.is(b,U)&&k.is(b&&b[0],U)||(b=k.parsePathString(b));var u=[],e=0,c=0,d=0,p=0,a=0;"M"==b[0][0]&&(e=b[0][1],c=b[0][2],d=e,p=c,a++,u.push(["M",e,c]));for(var g=b.length;a<g;a++){var n=u[a]=[],f=b[a];if(f[0]!=A.call(f[0]))switch(n[0]=A.call(f[0]),
n[0]){case "a":n[1]=f[1];n[2]=f[2];n[3]=f[3];n[4]=f[4];n[5]=f[5];n[6]=+(f[6]-e).toFixed(3);n[7]=+(f[7]-c).toFixed(3);break;case "v":n[1]=+(f[1]-c).toFixed(3);break;case "m":d=f[1],p=f[2];default:for(var m=1,q=f.length;m<q;m++)n[m]=+(f[m]-(m%2?e:c)).toFixed(3)}else for(u[a]=[],"m"==f[0]&&(d=f[1]+e,p=f[2]+c),n=0,m=f.length;n<m;n++)u[a][n]=f[n];f=u[a].length;switch(u[a][0]){case "z":e=d;c=p;break;case "h":e+=+u[a][f-1];break;case "v":c+=+u[a][f-1];break;default:e+=+u[a][f-2],c+=+u[a][f-1]}}u.toString=
k._path2string;h.rel=ca(u);return u},Qa=k._pathToAbsolute=function(b){var h=fa(b);if(h.abs)return ca(h.abs);k.is(b,U)&&k.is(b&&b[0],U)||(b=k.parsePathString(b));if(!b||!b.length)return[["M",0,0]];var e=[],c=0,d=0,a=0,p=0,g=0;"M"==b[0][0]&&(c=+b[0][1],d=+b[0][2],a=c,p=d,g++,e[0]=["M",c,d]);for(var n=3==b.length&&"M"==b[0][0]&&"R"==b[1][0].toUpperCase()&&"Z"==b[2][0].toUpperCase(),f,m=g,q=b.length;m<q;m++){e.push(g=[]);f=b[m];if(f[0]!=Ja.call(f[0]))switch(g[0]=Ja.call(f[0]),g[0]){case "A":g[1]=f[1];
g[2]=f[2];g[3]=f[3];g[4]=f[4];g[5]=f[5];g[6]=+(f[6]+c);g[7]=+(f[7]+d);break;case "V":g[1]=+f[1]+d;break;case "H":g[1]=+f[1]+c;break;case "R":for(var l=[c,d][H](f.slice(1)),y=2,A=l.length;y<A;y++)l[y]=+l[y]+c,l[++y]=+l[y]+d;e.pop();e=e[H](Z(l,n));break;case "M":a=+f[1]+c,p=+f[2]+d;default:for(y=1,A=f.length;y<A;y++)g[y]=+f[y]+(y%2?c:d)}else if("R"==f[0])l=[c,d][H](f.slice(1)),e.pop(),e=e[H](Z(l,n)),g=["R"][H](f.slice(-2));else for(l=0,y=f.length;l<y;l++)g[l]=f[l];switch(g[0]){case "Z":c=a;d=p;break;
case "H":c=g[1];break;case "V":d=g[1];break;case "M":a=g[g.length-2],p=g[g.length-1];default:c=g[g.length-2],d=g[g.length-1]}}e.toString=k._path2string;h.abs=ca(e);return e},oa=function(b,h,e,c){return[b,h,e,c,e,c]},Ra=function(b,h,e,c,d,a){var p=1/3,g=2/3;return[p*b+g*e,p*h+g*c,p*d+g*e,p*a+g*c,d,a]},Sa=function(b,h,e,c,d,a,p,g,f,m){var q=120*Y/180,l=Y/180*(+d||0),k=[],A,x=G(function(b,h,e){var c=b*y.cos(e)-h*y.sin(e);b=b*y.sin(e)+h*y.cos(e);return{x:c,y:b}});if(m)D=m[0],A=m[1],a=m[2],w=m[3];else{A=
x(b,h,-l);b=A.x;h=A.y;A=x(g,f,-l);g=A.x;f=A.y;y.cos(Y/180*d);y.sin(Y/180*d);A=(b-g)/2;D=(h-f)/2;w=A*A/(e*e)+D*D/(c*c);1<w&&(w=y.sqrt(w),e*=w,c*=w);var w=e*e,s=c*c,w=(a==p?-1:1)*y.sqrt($((w*s-w*D*D-s*A*A)/(w*D*D+s*A*A)));a=w*e*D/c+(b+g)/2;var w=w*-c*A/e+(h+f)/2,D=y.asin(((h-w)/c).toFixed(9));A=y.asin(((f-w)/c).toFixed(9));D=b<a?Y-D:D;A=g<a?Y-A:A;0>D&&(D=2*Y+D);0>A&&(A=2*Y+A);p&&D>A&&(D-=2*Y);!p&&A>D&&(A-=2*Y)}if($(A-D)>q){var k=A,s=g,r=f;A=D+q*(p&&A>D?1:-1);g=a+e*y.cos(A);f=w+c*y.sin(A);k=Sa(g,f,e,
c,d,0,p,s,r,[A,k,a,w])}a=A-D;d=y.cos(D);q=y.sin(D);p=y.cos(A);A=y.sin(A);a=y.tan(a/4);e=4/3*e*a;a*=4/3*c;c=[b,h];b=[b+e*q,h-a*d];h=[g+e*A,f-a*p];g=[g,f];b[0]=2*c[0]-b[0];b[1]=2*c[1]-b[1];if(m)return[b,h,g][H](k);k=[b,h,g][H](k).join()[n](",");m=[];g=0;for(f=k.length;g<f;g++)m[g]=g%2?x(k[g-1],k[g],l).y:x(k[g],k[g+1],l).x;return m},pa=function(b,h,e,c,d,a,p,g,f){var n=1-f;return{x:O(n,3)*b+3*O(n,2)*f*e+3*n*f*f*d+O(f,3)*p,y:O(n,3)*h+3*O(n,2)*f*c+3*n*f*f*a+O(f,3)*g}},Pa=G(function(b,h,e,d,a,p,g,f){var n=
a-2*e+b-(g-2*a+e),m=2*(e-b)-2*(a-e),q=b-e,l=(-m+y.sqrt(m*m-4*n*q))/2/n,n=(-m-y.sqrt(m*m-4*n*q))/2/n,A=[h,f],k=[b,g],w;"1e12"<$(l)&&(l=.5);"1e12"<$(n)&&(n=.5);0<l&&1>l&&(w=pa(b,h,e,d,a,p,g,f,l),k.push(w.x),A.push(w.y));0<n&&1>n&&(w=pa(b,h,e,d,a,p,g,f,n),k.push(w.x),A.push(w.y));n=p-2*d+h-(f-2*p+d);m=2*(d-h)-2*(p-d);q=h-d;l=(-m+y.sqrt(m*m-4*n*q))/2/n;n=(-m-y.sqrt(m*m-4*n*q))/2/n;"1e12"<$(l)&&(l=.5);"1e12"<$(n)&&(n=.5);0<l&&1>l&&(w=pa(b,h,e,d,a,p,g,f,l),k.push(w.x),A.push(w.y));0<n&&1>n&&(w=pa(b,h,e,
d,a,p,g,f,n),k.push(w.x),A.push(w.y));return{min:{x:X[c](0,k),y:X[c](0,A)},max:{x:D[c](0,k),y:D[c](0,A)}}}),ja=k._path2curve=G(function(b,h){var e=!h&&fa(b);if(!h&&e.curve)return ca(e.curve);var d=Qa(b),a=h&&Qa(h),p={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},g={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},f=function(b,h){var e,d;if(!b)return["C",h.x,h.y,h.x,h.y,h.x,h.y];b[0]in{T:1,Q:1}||(h.qx=h.qy=null);switch(b[0]){case "M":h.X=b[1];h.Y=b[2];break;case "A":b=["C"][H](Sa[c](0,[h.x,h.y][H](b.slice(1))));
break;case "S":e=h.x+(h.x-(h.bx||h.x));d=h.y+(h.y-(h.by||h.y));b=["C",e,d][H](b.slice(1));break;case "T":h.qx=h.x+(h.x-(h.qx||h.x));h.qy=h.y+(h.y-(h.qy||h.y));b=["C"][H](Ra(h.x,h.y,h.qx,h.qy,b[1],b[2]));break;case "Q":h.qx=b[1];h.qy=b[2];b=["C"][H](Ra(h.x,h.y,b[1],b[2],b[3],b[4]));break;case "L":b=["C"][H](oa(h.x,h.y,b[1],b[2]));break;case "H":b=["C"][H](oa(h.x,h.y,b[1],h.y));break;case "V":b=["C"][H](oa(h.x,h.y,h.x,b[1]));break;case "Z":b=["C"][H](oa(h.x,h.y,h.X,h.Y))}return b},n=function(b,h){if(7<
b[h].length){b[h].shift();for(var e=b[h];e.length;)b.splice(h++,0,["C"][H](e.splice(0,6)));b.splice(h,1);l=D(d.length,a&&a.length||0)}},m=function(b,h,e,c,u){b&&h&&"M"==b[u][0]&&"M"!=h[u][0]&&(h.splice(u,0,["M",c.x,c.y]),e.bx=0,e.by=0,e.x=b[u][1],e.y=b[u][2],l=D(d.length,a&&a.length||0))},q=0,l=D(d.length,a&&a.length||0);for(;q<l;q++){d[q]=f(d[q],p);n(d,q);a&&(a[q]=f(a[q],g));a&&n(a,q);m(d,a,p,g,q);m(a,d,g,p,q);var A=d[q],k=a&&a[q],y=A.length,w=a&&k.length;p.x=A[y-2];p.y=A[y-1];p.bx=Q(A[y-4])||p.x;
p.by=Q(A[y-3])||p.y;g.bx=a&&(Q(k[w-4])||g.x);g.by=a&&(Q(k[w-3])||g.y);g.x=a&&k[w-2];g.y=a&&k[w-1]}a||(e.curve=ca(d));return a?[d,a]:d},null,ca);k._parseDots=G(function(b){for(var h=[],e=0,c=b.length;e<c;e++){var d={},a=b[e].match(/^([^:]*):?([\d\.]*)/);d.color=k.getRGB(a[1]);if(d.color.error)return null;d.color=d.color.hex;a[2]&&(d.offset=a[2]+"%");h.push(d)}e=1;for(c=h.length-1;e<c;e++)if(!h[e].offset){b=Q(h[e-1].offset||0);a=0;for(d=e+1;d<c;d++)if(h[d].offset){a=h[d].offset;break}a||(a=100,d=c);
a=Q(a);for(a=(a-b)/(d-e+1);e<d;e++)b+=a,h[e].offset=b+"%"}return h});var qa=k._tear=function(b,h){b==h.top&&(h.top=b.prev);b==h.bottom&&(h.bottom=b.next);b.next&&(b.next.prev=b.prev);b.prev&&(b.prev.next=b.next)};k._tofront=function(b,h){h.top!==b&&(qa(b,h),b.next=null,b.prev=h.top,h.top.next=b,h.top=b)};k._toback=function(b,h){h.bottom!==b&&(qa(b,h),b.next=h.bottom,b.prev=null,h.bottom.prev=b,h.bottom=b)};k._insertafter=function(b,h,e){qa(b,e);h==e.top&&(e.top=b);h.next&&(h.next.prev=b);b.next=h.next;
b.prev=h;h.next=b};k._insertbefore=function(b,h,e){qa(b,e);h==e.bottom&&(e.bottom=b);h.prev&&(h.prev.next=b);b.prev=h.prev;h.prev=b;b.next=h};var lb=k.toMatrix=function(b,h){var e=za(b),c={_:{transform:""},getBBox:function(){return e}};Ha(c,h);return c.matrix};k.transformPath=function(b,h){return xa(b,lb(b,h))};var Ha=k._extractTransform=function(b,h){if(null==h)return b._.transform;h=p(h).replace(/\.{3}|\u2026/g,b._.transform||"");var e=k.parseTransformString(h),c=0,d=0,a=0,g=1,f=1,n=b._,a=new C;
n.transform=e||[];if(e)for(var d=0,m=e.length;d<m;d++){var q=e[d],l=q.length,A=p(q[0]).toLowerCase(),y=q[0]!=A,w=y?a.invert():0,H,x,D,s,r;"t"==A&&3==l?y?(H=w.x(0,0),x=w.y(0,0),D=w.x(q[1],q[2]),s=w.y(q[1],q[2]),a.translate(D-H,s-x)):a.translate(q[1],q[2]):"r"==A?2==l?(r=r||b.getBBox(1),a.rotate(q[1],r.x+r.width/2,r.y+r.height/2),c+=q[1]):4==l&&(y?(D=w.x(q[2],q[3]),s=w.y(q[2],q[3]),a.rotate(q[1],D,s)):a.rotate(q[1],q[2],q[3]),c+=q[1]):"s"==A?2==l||3==l?(r=r||b.getBBox(1),a.scale(q[1],q[l-1],r.x+r.width/
2,r.y+r.height/2),g*=q[1],f*=q[l-1]):5==l&&(y?(D=w.x(q[3],q[4]),s=w.y(q[3],q[4]),a.scale(q[1],q[2],D,s)):a.scale(q[1],q[2],q[3],q[4]),g*=q[1],f*=q[2]):"m"==A&&7==l&&a.add(q[1],q[2],q[3],q[4],q[5],q[6]);n.dirtyT=1;b.matrix=a}b.matrix=a;n.sx=g;n.sy=f;n.deg=c;n.dx=d=a.e;n.dy=a=a.f;1==g&&1==f&&!c&&n.bbox?(n.bbox.x+=+d,n.bbox.y+=+a):n.dirtyT=1},Ta=function(b){var h=b[0];switch(h.toLowerCase()){case "t":return[h,0,0];case "m":return[h,1,0,0,1,0,0];case "r":return 4==b.length?[h,0,b[2],b[3]]:[h,0];case "s":return 5==
b.length?[h,1,1,b[3],b[4]]:3==b.length?[h,1,1]:[h,1]}},Ya=k._equaliseTransform=function(b,h){h=p(h).replace(/\.{3}|\u2026/g,b);b=k.parseTransformString(b)||[];h=k.parseTransformString(h)||[];for(var e=D(b.length,h.length),c=[],d=[],a=0,g,f,n,q;a<e;a++){n=b[a]||Ta(h[a]);q=h[a]||Ta(n);if(n[0]!=q[0]||"r"==n[0].toLowerCase()&&(n[2]!=q[2]||n[3]!=q[3])||"s"==n[0].toLowerCase()&&(n[3]!=q[3]||n[4]!=q[4]))return;c[a]=[];d[a]=[];g=0;for(f=D(n.length,q.length);g<f;g++)g in n&&(c[a][g]=n[g]),g in q&&(d[a][g]=
q[g])}return{from:c,to:d}};k._getContainer=function(b,h,e,c){var d;d=null!=c||k.is(b,"object")?b:f.doc.getElementById(b);if(null!=d)return d.tagName?null==h?{container:d,width:d.style.pixelWidth||d.offsetWidth,height:d.style.pixelHeight||d.offsetHeight}:{container:d,width:h,height:e}:{container:1,x:b,y:h,width:e,height:c}};k.pathToRelative=kb;k._engine={};k.path2curve=ja;k.matrix=function(b,h,e,c,d,a){return new C(b,h,e,c,d,a)};(function(b){function h(b){var h=y.sqrt(e(b));b[0]&&(b[0]/=h);b[1]&&(b[1]/=
h)}function e(b){return b[0]*b[0]+b[1]*b[1]}b.add=function(b,h,e,c,d,a){var u=[[],[],[]],g=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];h=[[b,e,d],[h,c,a],[0,0,1]];b&&b instanceof C&&(h=[[b.a,b.c,b.e],[b.b,b.d,b.f],[0,0,1]]);for(b=0;3>b;b++)for(e=0;3>e;e++){for(c=d=0;3>c;c++)d+=g[b][c]*h[c][e];u[b][e]=d}this.a=u[0][0];this.b=u[1][0];this.c=u[0][1];this.d=u[1][1];this.e=u[0][2];this.f=u[1][2]};b.invert=function(){var b=this.a*this.d-this.b*this.c;return new C(this.d/b,-this.b/b,-this.c/
b,this.a/b,(this.c*this.f-this.d*this.e)/b,(this.b*this.e-this.a*this.f)/b)};b.clone=function(){return new C(this.a,this.b,this.c,this.d,this.e,this.f)};b.translate=function(b,h){this.add(1,0,0,1,b,h)};b.scale=function(b,h,e,c){null==h&&(h=b);(e||c)&&this.add(1,0,0,1,e,c);this.add(b,0,0,h,0,0);(e||c)&&this.add(1,0,0,1,-e,-c)};b.rotate=function(b,h,e){b=k.rad(b);h=h||0;e=e||0;var c=+y.cos(b).toFixed(9);b=+y.sin(b).toFixed(9);this.add(c,b,-b,c,h,e);this.add(1,0,0,1,-h,-e)};b.x=function(b,h){return b*
this.a+h*this.c+this.e};b.y=function(b,h){return b*this.b+h*this.d+this.f};b.get=function(b){return+this[p.fromCharCode(97+b)].toFixed(4)};b.toString=function(){return k.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};b.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+
", Dy="+this.get(5)+", sizingmethod='auto expand')"};b.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};b.split=function(){var b={};b.dx=this.e;b.dy=this.f;var c=[[this.a,this.c],[this.b,this.d]];b.scalex=y.sqrt(e(c[0]));h(c[0]);b.shear=c[0][0]*c[1][0]+c[0][1]*c[1][1];c[1]=[c[1][0]-c[0][0]*b.shear,c[1][1]-c[0][1]*b.shear];b.scaley=y.sqrt(e(c[1]));h(c[1]);b.shear/=b.scaley;var d=-c[0][1],c=c[1][1];0>c?(b.rotate=k.deg(y.acos(c)),0>d&&(b.rotate=360-b.rotate)):b.rotate=k.deg(y.asin(d));
b.isSimple=!+b.shear.toFixed(9)&&(b.scalex.toFixed(9)==b.scaley.toFixed(9)||!b.rotate);b.isSuperSimple=!+b.shear.toFixed(9)&&b.scalex.toFixed(9)==b.scaley.toFixed(9)&&!b.rotate;b.noRotation=!+b.shear.toFixed(9)&&!b.rotate;return b};b.toTransformString=function(b){b=b||this[n]();return b.isSimple?(b.scalex=+b.scalex.toFixed(4),b.scaley=+b.scaley.toFixed(4),b.rotate=+b.rotate.toFixed(4),(b.dx||b.dy?"t"+[b.dx,b.dy]:"")+(1!=b.scalex||1!=b.scaley?"s"+[b.scalex,b.scaley,0,0]:"")+(b.rotate?"r"+[b.rotate,
0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(C.prototype);var ra=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(ra&&4>ra[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&ra&&8>ra[1]?F.safari=function(){var b=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){b.remove()})}:F.safari=hb;for(var mb=function(){this.returnValue=
!1},nb=function(){return this.originalEvent.preventDefault()},ob=function(){this.cancelBubble=!0},pb=function(){return this.originalEvent.stopPropagation()},qb=function(){if(f.doc.addEventListener)return function(b,h,e,c){var d=w&&g[h]?g[h]:h,a=function(d){var a=d.clientX+(f.doc.documentElement.scrollLeft||f.doc.body.scrollLeft),p=d.clientY+(f.doc.documentElement.scrollTop||f.doc.body.scrollTop);if(w&&g[m](h))for(var n=0,q=d.targetTouches&&d.targetTouches.length;n<q;n++)if(d.targetTouches[n].target==
b){q=d;d=d.targetTouches[n];d.originalEvent=q;d.preventDefault=nb;d.stopPropagation=pb;break}return e.call(c,d,a,p)};b.addEventListener(d,a,!1);return function(){b.removeEventListener(d,a,!1);return!0}};if(f.doc.attachEvent)return function(b,h,e,c){var d=function(b){b=b||f.win.event;var h=b.clientX+(f.doc.documentElement.scrollLeft||f.doc.body.scrollLeft),d=b.clientY+(f.doc.documentElement.scrollTop||f.doc.body.scrollTop);b.preventDefault=b.preventDefault||mb;b.stopPropagation=b.stopPropagation||
ob;return e.call(c,b,h,d)};b.attachEvent("on"+h,d);return function(){b.detachEvent("on"+h,d);return!0}}}(),ga=[],Aa=function(b){for(var h=b.clientX,e=b.clientY,c=f.doc.documentElement.scrollTop||f.doc.body.scrollTop,d=f.doc.documentElement.scrollLeft||f.doc.body.scrollLeft,a,g=ga.length;g--;){a=ga[g];if(w)for(var p=b.touches.length,n;p--;){if(n=b.touches[p],n.identifier==a.el._drag.id){h=n.clientX;e=n.clientY;(b.originalEvent?b.originalEvent:b).preventDefault();break}}else b.preventDefault();var p=
a.el.node,q=p.nextSibling,m=p.parentNode,l=p.style.display;f.win.opera&&m.removeChild(p);p.style.display="none";n=a.el.paper.getElementByPoint(h,e);p.style.display=l;f.win.opera&&(q?m.insertBefore(p,q):m.appendChild(p));n&&eve("raphael.drag.over."+a.el.id,a.el,n);h+=d;e+=c;eve("raphael.drag.move."+a.el.id,a.move_scope||a.el,h-a.el._drag.x,e-a.el._drag.y,h,e,b)}},Ba=function(b){k.unmousemove(Aa).unmouseup(Ba);for(var h=ga.length,e;h--;)e=ga[h],e.el._drag={},eve("raphael.drag.end."+e.el.id,e.end_scope||
e.start_scope||e.move_scope||e.el,b);ga=[]},M=k.el={},Ua=q.length;Ua--;)(function(b){k[b]=M[b]=function(h,e){k.is(h,"function")&&(this.events=this.events||[],this.events.push({name:b,f:h,unbind:qb(this.shape||this.node||f.doc,b,h,e||this)}));return this};k["un"+b]=M["un"+b]=function(e){for(var c=this.events||[],d=c.length;d--;)if(c[d].name==b&&c[d].f==e){c[d].unbind();c.splice(d,1);!c.length&&delete this.events;break}return this}})(q[Ua]);M.data=function(b,e){var c=ka[this.id]=ka[this.id]||{};if(1==
arguments.length){if(k.is(b,"object")){for(var d in b)b[m](d)&&this.data(d,b[d]);return this}eve("raphael.data.get."+this.id,this,c[b],b);return c[b]}c[b]=e;eve("raphael.data.set."+this.id,this,e,b);return this};M.removeData=function(b){null==b?ka[this.id]={}:ka[this.id]&&delete ka[this.id][b];return this};M.hover=function(b,e,c,d){return this.mouseover(b,c).mouseout(e,d||c)};M.unhover=function(b,e){return this.unmouseover(b).unmouseout(e)};var ha=[];M.drag=function(b,e,c,d,a,p){function g(n){(n.originalEvent||
n).preventDefault();var q=f.doc.documentElement.scrollTop||f.doc.body.scrollTop,m=f.doc.documentElement.scrollLeft||f.doc.body.scrollLeft;this._drag.x=n.clientX+m;this._drag.y=n.clientY+q;this._drag.id=n.identifier;!ga.length&&k.mousemove(Aa).mouseup(Ba);ga.push({el:this,move_scope:d,start_scope:a,end_scope:p});e&&eve.on("raphael.drag.start."+this.id,e);b&&eve.on("raphael.drag.move."+this.id,b);c&&eve.on("raphael.drag.end."+this.id,c);eve("raphael.drag.start."+this.id,a||d||this,n.clientX+m,n.clientY+
q,n)}this._drag={};ha.push({el:this,start:g});this.mousedown(g);return this};M.onDragOver=function(b){b?eve.on("raphael.drag.over."+this.id,b):eve.unbind("raphael.drag.over."+this.id)};M.undrag=function(){for(var b=ha.length;b--;)ha[b].el==this&&(this.unmousedown(ha[b].start),ha.splice(b,1),eve.unbind("raphael.drag.*."+this.id));!ha.length&&k.unmousemove(Aa).unmouseup(Ba)};F.circle=function(b,e,c){b=k._engine.circle(this,b||0,e||0,c||0);this.__set__&&this.__set__.push(b);return b};F.rect=function(b,
e,c,d,a){b=k._engine.rect(this,b||0,e||0,c||0,d||0,a||0);this.__set__&&this.__set__.push(b);return b};F.ellipse=function(b,e,c,d){b=k._engine.ellipse(this,b||0,e||0,c||0,d||0);this.__set__&&this.__set__.push(b);return b};F.path=function(b){b&&!k.is(b,"string")&&!k.is(b[0],U)&&(b+="");var e=k._engine.path(k.format[c](k,arguments),this);this.__set__&&this.__set__.push(e);return e};F.image=function(b,e,c,d,a){b=k._engine.image(this,b||"about:blank",e||0,c||0,d||0,a||0);this.__set__&&this.__set__.push(b);
return b};F.text=function(b,e,c){b=k._engine.text(this,b||0,e||0,p(c));this.__set__&&this.__set__.push(b);return b};F.set=function(b){!k.is(b,"array")&&(b=Array.prototype.splice.call(arguments,0,arguments.length));var e=new ia(b);this.__set__&&this.__set__.push(e);return e};F.setStart=function(b){this.__set__=b||this.set()};F.setFinish=function(b){b=this.__set__;delete this.__set__;return b};F.setSize=function(b,e){return k._engine.setSize.call(this,b,e)};F.setViewBox=function(b,e,c,d,a){return k._engine.setViewBox.call(this,
b,e,c,d,a)};F.top=F.bottom=null;F.raphael=k;F.getElementByPoint=function(b,e){var c,d,a=this.canvas,p=f.doc.elementFromPoint(b,e);if(f.win.opera&&"svg"==p.tagName){d=a.getBoundingClientRect();c=a.ownerDocument;var g=c.body,n=c.documentElement;c=d.top+(f.win.pageYOffset||n.scrollTop||g.scrollTop)-(n.clientTop||g.clientTop||0);d=d.left+(f.win.pageXOffset||n.scrollLeft||g.scrollLeft)-(n.clientLeft||g.clientLeft||0);g=a.createSVGRect();g.x=b-d;g.y=e-c;g.width=g.height=1;c=a.getIntersectionList(g,null);
c.length&&(p=c[c.length-1])}if(!p)return null;for(;p.parentNode&&p!=a.parentNode&&!p.raphael;)p=p.parentNode;p==this.canvas.parentNode&&(p=a);return p=p&&p.raphael?this.getById(p.raphaelid):null};F.getById=function(b){for(var e=this.bottom;e;){if(e.id==b)return e;e=e.next}return null};F.forEach=function(b,e){for(var c=this.bottom;c&&!1!==b.call(e,c);)c=c.next;return this};F.getElementsByPoint=function(b,e){var c=this.set();this.forEach(function(d){d.isPointInside(b,e)&&c.push(d)});return c};M.isPointInside=
function(b,e){var c=this.realPath=this.realPath||la[this.type](this);return k.isPointInsidePath(c,b,e)};M.getBBox=function(b){if(this.removed)return{};var e=this._;if(b){if(e.dirty||!e.bboxwt)this.realPath=la[this.type](this),e.bboxwt=za(this.realPath),e.bboxwt.toString=v,e.dirty=0;return e.bboxwt}if(e.dirty||e.dirtyT||!e.bbox){if(e.dirty||!this.realPath)e.bboxwt=0,this.realPath=la[this.type](this);e.bbox=za(xa(this.realPath,this.matrix));e.bbox.toString=v;e.dirty=e.dirtyT=0}return e.bbox};M.clone=
function(){if(this.removed)return null;var b=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(b);return b};M.glow=function(b){if("text"==this.type)return null;b=b||{};var e=(b.width||10)+(+this.attr("stroke-width")||1),c=b.fill||!1,d=b.opacity||.5,a=b.offsetx||0,p=b.offsety||0;b=b.color||"#000";for(var g=e/2,n=this.paper,f=n.set(),q=this.realPath||la[this.type](this),q=this.matrix?xa(q,this.matrix):q,m=1;m<g+1;m++)f.push(n.path(q).attr({stroke:b,fill:c?b:"none","stroke-linejoin":"round",
"stroke-linecap":"round","stroke-width":+(e/g*m).toFixed(3),opacity:+(d/g).toFixed(3)}));return f.insertBefore(this).translate(a,p)};var Ca=function(b,e,c,d,a,p,g,n,f){return null==f?V(b,e,c,d,a,p,g,n):k.findDotsAtSegment(b,e,c,d,a,p,g,n,I(b,e,c,d,a,p,g,n,f))},Da=function(b,e){return function(c,d,a){c=ja(c);for(var p,g,n,f,q="",m={},l=0,A=0,y=c.length;A<y;A++){n=c[A];if("M"==n[0])p=+n[1],g=+n[2];else{f=Ca(p,g,n[1],n[2],n[3],n[4],n[5],n[6]);if(l+f>d){if(e&&!m.start){p=Ca(p,g,n[1],n[2],n[3],n[4],n[5],
n[6],d-l);q+=["C"+p.start.x,p.start.y,p.m.x,p.m.y,p.x,p.y];if(a)return q;m.start=q;q=["M"+p.x,p.y+"C"+p.n.x,p.n.y,p.end.x,p.end.y,n[5],n[6]].join();l+=f;p=+n[5];g=+n[6];continue}if(!b&&!e)return p=Ca(p,g,n[1],n[2],n[3],n[4],n[5],n[6],d-l),{x:p.x,y:p.y,alpha:p.alpha}}l+=f;p=+n[5];g=+n[6]}q+=n.shift()+n}m.end=q;p=b?l:e?m:k.findDotsAtSegment(p,g,n[0],n[1],n[2],n[3],n[4],n[5],1);p.alpha&&(p={x:p.x,y:p.y,alpha:p.alpha});return p}},Va=Da(1),Wa=Da(),Ea=Da(0,1);k.getTotalLength=Va;k.getPointAtLength=Wa;k.getSubpath=
function(b,e,c){if(1E-6>this.getTotalLength(b)-c)return Ea(b,e).end;b=Ea(b,c,1);return e?Ea(b,e).end:b};M.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Va(this.attrs.path)};M.getPointAtLength=function(b){if("path"==this.type)return Wa(this.attrs.path,b)};M.getSubpath=function(b,e){if("path"==this.type)return k.getSubpath(this.attrs.path,b,e)};var ba=k.easing_formulas={linear:function(b){return b},"<":function(b){return O(b,1.7)},">":function(b){return O(b,
.48)},"<>":function(b){var e=.48-b/1.04,c=y.sqrt(.1734+e*e);b=c-e;b=O($(b),1/3)*(0>b?-1:1);e=-c-e;e=O($(e),1/3)*(0>e?-1:1);b=b+e+.5;return 3*(1-b)*b*b+b*b*b},backIn:function(b){return b*b*(2.70158*b-1.70158)},backOut:function(b){b-=1;return b*b*(2.70158*b+1.70158)+1},elastic:function(b){return b==!!b?b:O(2,-10*b)*y.sin(2*(b-.075)*Y/.3)+1},bounce:function(b){var e;b<1/2.75?e=7.5625*b*b:b<2/2.75?(b-=1.5/2.75,e=7.5625*b*b+.75):b<2.5/2.75?(b-=2.25/2.75,e=7.5625*b*b+.9375):(b-=2.625/2.75,e=7.5625*b*b+
.984375);return e}};ba.easeIn=ba["ease-in"]=ba["<"];ba.easeOut=ba["ease-out"]=ba[">"];ba.easeInOut=ba["ease-in-out"]=ba["<>"];ba["back-in"]=ba.backIn;ba["back-out"]=ba.backOut;var K=[],Ia=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(b){setTimeout(b,16)},ta=function(){for(var b=+new Date,c=0;c<K.length;c++){var d=K[c];if(!d.el.removed&&!d.paused){var a=b-d.start,p=d.ms,n=d.easing,
g=d.from,f=d.diff,q=d.to,A=d.el,y={},w,x={},D;d.initstatus?(a=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*p,d.status=d.initstatus,delete d.initstatus,d.stop&&K.splice(c--,1)):d.status=(d.prev+a/p*(d.percent-d.prev))/d.anim.top;if(!(0>a))if(a<p){var s=n(a/p),r;for(r in g)if(g[m](r)){switch(sa[r]){case S:w=+g[r]+s*p*f[r];break;case "colour":w="rgb("+[Fa(ua(g[r].r+s*p*f[r].r)),Fa(ua(g[r].g+s*p*f[r].g)),Fa(ua(g[r].b+s*p*f[r].b))].join()+")";break;case "path":w=[];a=0;for(n=g[r].length;a<n;a++){w[a]=
[g[r][a][0]];q=1;for(x=g[r][a].length;q<x;q++)w[a][q]=+g[r][a][q]+s*p*f[r][a][q];w[a]=w[a].join(e)}w=w.join(e);break;case "transform":if(f[r].real)for(w=[],a=0,n=g[r].length;a<n;a++)for(w[a]=[g[r][a][0]],q=1,x=g[r][a].length;q<x;q++)w[a][q]=g[r][a][q]+s*p*f[r][a][q];else w=function(b){return+g[r][b]+s*p*f[r][b]},w=[["m",w(0),w(1),w(2),w(3),w(4),w(5)]];break;case "csv":if("clip-rect"==r)for(w=[],a=4;a--;)w[a]=+g[r][a]+s*p*f[r][a];break;default:for(n=[][H](g[r]),w=[],a=A.paper.customAttributes[r].length;a--;)w[a]=
+n[a]+s*p*f[r][a]}y[r]=w}A.attr(y);(function(b,e,c){setTimeout(function(){eve("raphael.anim.frame."+b,e,c)})})(A.id,A,d.anim)}else{(function(b,e,c){setTimeout(function(){eve("raphael.anim.frame."+e.id,e,c);eve("raphael.anim.finish."+e.id,e,c);k.is(b,"function")&&b.call(e)})})(d.callback,A,d.anim);A.attr(q);K.splice(c--,1);if(1<d.repeat&&!d.next){for(D in q)q[m](D)&&(x[D]=d.totalOrigin[D]);d.el.attr(x);l(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&l(d.anim,d.el,d.next,
null,d.totalOrigin,d.repeat)}}}k.svg&&A&&A.paper&&A.paper.safari();K.length&&Ia(ta)},Fa=function(b){return 255<b?255:0>b?0:b};M.animateWith=function(b,e,c,d,a,p){if(this.removed)return p&&p.call(this),this;c=c instanceof s?c:k.animation(c,d,a,p);l(c,this,c.percents[0],null,this.attr());c=0;for(d=K.length;c<d;c++)if(K[c].anim==e&&K[c].el==b){K[d-1].start=K[c].start;break}return this};M.onAnimation=function(b){b?eve.on("raphael.anim.frame."+this.id,b):eve.unbind("raphael.anim.frame."+this.id);return this};
s.prototype.delay=function(b){var e=new s(this.anim,this.ms);e.times=this.times;e.del=+b||0;return e};s.prototype.repeat=function(b){var e=new s(this.anim,this.ms);e.del=this.del;e.times=y.floor(D(b,0))||1;return e};k.animation=function(b,e,c,d){if(b instanceof s)return b;if(k.is(c,"function")||!c)d=d||c||null,c=null;b=Object(b);e=+e||0;var a={},p,g;for(g in b)b[m](g)&&Q(g)!=g&&Q(g)+"%"!=g&&(p=!0,a[g]=b[g]);if(!p)return new s(b,e);c&&(a.easing=c);d&&(a.callback=d);return new s({100:a},e)};M.animate=
function(b,e,c,d){if(this.removed)return d&&d.call(this),this;b=b instanceof s?b:k.animation(b,e,c,d);l(b,this,b.percents[0],null,this.attr());return this};M.setTime=function(b,e){b&&null!=e&&this.status(b,X(e,b.ms)/b.ms);return this};M.status=function(b,e){var c=[],d=0,a,p;if(null!=e)return l(b,this,-1,X(e,1)),this;for(a=K.length;d<a;d++)if(p=K[d],p.el.id==this.id&&(!b||p.anim==b)){if(b)return p.status;c.push({anim:p.anim,status:p.status})}return b?0:c};M.pause=function(b){for(var e=0;e<K.length;e++)K[e].el.id!=
this.id||b&&K[e].anim!=b||!1===eve("raphael.anim.pause."+this.id,this,K[e].anim)||(K[e].paused=!0);return this};M.resume=function(b){for(var e=0;e<K.length;e++)if(K[e].el.id==this.id&&(!b||K[e].anim==b)){var c=K[e];!1!==eve("raphael.anim.resume."+this.id,this,c.anim)&&(delete c.paused,this.status(c.anim,c.status))}return this};M.stop=function(b){for(var e=0;e<K.length;e++)K[e].el.id!=this.id||b&&K[e].anim!=b||!1===eve("raphael.anim.stop."+this.id,this,K[e].anim)||K.splice(e--,1);return this};eve.on("raphael.remove",
d);eve.on("raphael.clear",d);M.toString=function(){return"Rapha\u00ebl\u2019s object"};var ia=function(b){this.items=[];this.length=0;this.type="set";if(b)for(var e=0,c=b.length;e<c;e++)b[e]&&(b[e].constructor==M.constructor||b[e].constructor==ia)&&(this[this.items.length]=this.items[this.items.length]=b[e],this.length++)},T=ia.prototype;T.push=function(){for(var b,e,c=0,d=arguments.length;c<d;c++)(b=arguments[c])&&(b.constructor==M.constructor||b.constructor==ia)&&(e=this.items.length,this[e]=this.items[e]=
b,this.length++);return this};T.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};T.forEach=function(b,e){for(var c=0,d=this.items.length;c<d&&!1!==b.call(e,this.items[c],c);c++);return this};for(var Ga in M)M[m](Ga)&&(T[Ga]=function(b){return function(){var e=arguments;return this.forEach(function(d){d[b][c](d,e)})}}(Ga));T.attr=function(b,e){if(b&&k.is(b,U)&&k.is(b[0],"object"))for(var c=0,d=b.length;c<d;c++)this.items[c].attr(b[c]);else for(c=0,d=this.items.length;c<
d;c++)this.items[c].attr(b,e);return this};T.clear=function(){for(;this.length;)this.pop()};T.splice=function(b,e,c){b=0>b?D(this.length+b,0):b;e=D(0,X(this.length-b,e));var d=[],a=[],p=[],g;for(g=2;g<arguments.length;g++)p.push(arguments[g]);for(g=0;g<e;g++)a.push(this[b+g]);for(;g<this.length-b;g++)d.push(this[b+g]);var n=p.length;for(g=0;g<n+d.length;g++)this.items[b+g]=this[b+g]=g<n?p[g]:d[g-n];for(g=this.items.length=this.length-=e-n;this[g];)delete this[g++];return new ia(a)};T.exclude=function(b){for(var e=
0,c=this.length;e<c;e++)if(this[e]==b)return this.splice(e,1),!0};T.animate=function(b,e,c,d){!k.is(c,"function")&&c||(d=c||null);var a=this.items.length,p=a,g=this,n;if(!a)return this;d&&(n=function(){!--a&&d.call(g)});c=k.is(c,"string")?c:n;e=k.animation(b,e,c,n);for(b=this.items[--p].animate(e);p--;)this.items[p]&&!this.items[p].removed&&this.items[p].animateWith(b,e,e);return this};T.insertAfter=function(b){for(var e=this.items.length;e--;)this.items[e].insertAfter(b);return this};T.getBBox=function(){for(var b=
[],e=[],d=[],a=[],p=this.items.length;p--;)if(!this.items[p].removed){var g=this.items[p].getBBox();b.push(g.x);e.push(g.y);d.push(g.x+g.width);a.push(g.y+g.height)}b=X[c](0,b);e=X[c](0,e);d=D[c](0,d);a=D[c](0,a);return{x:b,y:e,x2:d,y2:a,width:d-b,height:a-e}};T.clone=function(b){b=new ia;for(var e=0,c=this.items.length;e<c;e++)b.push(this.items[e].clone());return b};T.toString=function(){return"Rapha\u00ebl\u2018s set"};k.registerFont=function(b){if(!b.face)return b;this.fonts=this.fonts||{};var e=
{w:b.w,face:{},glyphs:{}},c=b.face["font-family"],d;for(d in b.face)b.face[m](d)&&(e.face[d]=b.face[d]);this.fonts[c]?this.fonts[c].push(e):this.fonts[c]=[e];if(!b.svg){e.face["units-per-em"]=ea(b.face["units-per-em"],10);for(var a in b.glyphs)if(b.glyphs[m](a)&&(c=b.glyphs[a],e.glyphs[a]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(b){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[b]||"M"})+"z"},c.k))for(var p in c.k)c[m](p)&&(e.glyphs[a].k[p]=c.k[p])}return b};F.getFont=function(b,e,c,
d){d=d||"normal";c=c||"normal";e=+e||{normal:400,bold:700,lighter:300,bolder:800}[e]||400;if(k.fonts){var a=k.fonts[b];if(!a){b=new RegExp("(^|\\s)"+b.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i");for(var p in k.fonts)if(k.fonts[m](p)&&b.test(p)){a=k.fonts[p];break}}var g;if(a)for(p=0,b=a.length;p<b&&(g=a[p],g.face["font-weight"]!=e||g.face["font-style"]!=c&&g.face["font-style"]||g.face["font-stretch"]!=d);p++);return g}};F.print=function(b,e,c,d,a,g,f){g=g||"middle";f=D(X(f||0,1),-1);var q=p(c)[n](""),
m=0,l=0,A="";k.is(d,c)&&(d=this.getFont(d));if(d){c=(a||16)/d.face["units-per-em"];var w=d.face.bbox[n](W);a=+w[0];var y=w[3]-w[1],H=0;g=+w[1]+("baseline"==g?y+ +d.face.descent:y/2);for(var w=0,x=q.length;w<x;w++){if("\n"==q[w])l=s=m=0,H+=y;else var r=l&&d.glyphs[q[w-1]]||{},s=d.glyphs[q[w]],m=m+(l?(r.w||d.w)+(r.k&&r.k[q[w]]||0)+d.w*f:0),l=1;s&&s.d&&(A+=k.transformPath(s.d,["t",m*c,H*c,"s",c,c,a,g,"t",(b-a)/c,(e-g)/c]))}}return this.path(A).attr({fill:"#000",stroke:"none"})};F.add=function(b){if(k.is(b,
"array"))for(var e=this.set(),c=0,d=b.length,a;c<d;c++)a=b[c]||{},J[m](a.type)&&e.push(this[a.type]().attr(a));return e};k.format=function(b,e){var c=k.is(e,U)?[0][H](e):arguments;b&&k.is(b,"string")&&c.length-1&&(b=b.replace(a,function(b,e){return null==c[++e]?"":c[e]}));return b||""};k.fullfill=function(){var b=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(b,c,d){var a=d;c.replace(e,function(b,e,c,d,p){e=e||d;a&&(e in a&&(a=a[e]),"function"==typeof a&&p&&
(a=a()))});return a=(null==a||a==d?b:a)+""};return function(e,d){return String(e).replace(b,function(b,e){return c(b,e,d)})}}();k.ninja=function(){L?f.win.Raphael=x:delete Raphael;return k};k.st=T;(function(b,e,c){function d(){/in/.test(b.readyState)?setTimeout(d,9):k.eve("raphael.DOMload")}null==b.readyState&&b.addEventListener&&(b.addEventListener(e,c=function(){b.removeEventListener(e,c,!1);b.readyState="complete"},!1),b.readyState="loading");d()})(document,"DOMContentLoaded");L?f.win.Raphael=
k:Raphael=k;eve.on("raphael.DOMload",function(){P=!0})})();
window.Raphael.svg&&function(d){var l=String,s=parseFloat,r=parseInt,v=Math,C=v.max,E=v.abs,I=v.pow,V=/[, ]+/,Z=d.eve,aa={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},G={};d.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var B=function(c,a){if(a){"string"==typeof c&&(c=B(c));for(var f in a)a.hasOwnProperty(f)&&("xlink:"==
f.substring(0,6)?c.setAttributeNS("http://www.w3.org/1999/xlink",f.substring(6),l(a[f])):c.setAttribute(f,l(a[f])))}else c=d._g.doc.createElementNS("http://www.w3.org/2000/svg",c),c.style&&(c.style.webkitTapHighlightColor="rgba(0,0,0,0)");return c},k=function(c,a){var f="linear",e=c.id+a,p=.5,n=.5,q=c.node,g=c.paper,m=q.style,y=d._g.doc.getElementById(e);if(!y){a=l(a).replace(d._radial_gradient,function(e,c,d){f="radial";c&&d&&(p=s(c),n=s(d),e=2*(.5<n)-1,.25<I(p-.5,2)+I(n-.5,2)&&(n=v.sqrt(.25-I(p-
.5,2))*e+.5)&&.5!=n&&(n=n.toFixed(5)-1E-5*e));return""});a=a.split(/\s*\-\s*/);if("linear"==f){y=a.shift();y=-s(y);if(isNaN(y))return null;var k=[0,0,v.cos(d.rad(y)),v.sin(d.rad(y))],y=1/(C(E(k[2]),E(k[3]))||1);k[2]*=y;k[3]*=y;0>k[2]&&(k[0]=-k[2],k[2]=0);0>k[3]&&(k[1]=-k[3],k[3]=0)}var x=d._parseDots(a);if(!x)return null;e=e.replace(/[\(\)\s,\xb0#]/g,"_");c.gradient&&e!=c.gradient.id&&(g.defs.removeChild(c.gradient),delete c.gradient);if(!c.gradient)for(y=B(f+"Gradient",{id:e}),c.gradient=y,B(y,"radial"==
f?{fx:p,fy:n}:{x1:k[0],y1:k[1],x2:k[2],y2:k[3],gradientTransform:c.matrix.invert()}),g.defs.appendChild(y),g=0,k=x.length;g<k;g++)y.appendChild(B("stop",{offset:x[g].offset?x[g].offset:g?"100%":"0%","stop-color":x[g].color||"#fff"}))}B(q,{fill:"url(#"+e+")",opacity:1,"fill-opacity":1});m.fill="";m.opacity=1;return m.fillOpacity=1},P=function(c){var d=c.getBBox(1);B(c.pattern,{patternTransform:c.matrix.invert()+" translate("+d.x+","+d.y+")"})},W=function(c,a,f){if("path"==c.type){for(var e=l(a).toLowerCase().split("-"),
p=c.paper,n=f?"end":"start",q=c.node,g=c.attrs,m=g["stroke-width"],k=e.length,x="classic",r,s,v,L,C,F=3,N=3,E=5;k--;)switch(e[k]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":x=e[k];break;case "wide":N=5;break;case "narrow":N=2;break;case "long":F=5;break;case "short":F=2}"open"==x?(F+=2,N+=2,E+=2,v=1,L=f?4:1,C={fill:"none",stroke:g.stroke}):(L=v=F/2,C={fill:g.stroke,stroke:"none"});c._.arrows?f?(c._.arrows.endPath&&G[c._.arrows.endPath]--,c._.arrows.endMarker&&G[c._.arrows.endMarker]--):
(c._.arrows.startPath&&G[c._.arrows.startPath]--,c._.arrows.startMarker&&G[c._.arrows.startMarker]--):c._.arrows={};if("none"!=x){e="raphael-marker-"+x;k="raphael-marker-"+n+x+F+N;d._g.doc.getElementById(e)?G[e]++:(p.defs.appendChild(B(B("path"),{"stroke-linecap":"round",d:aa[x],id:e})),G[e]=1);var I=d._g.doc.getElementById(k),J;I?(G[k]++,J=I.getElementsByTagName("use")[0]):(I=B(B("marker"),{id:k,markerHeight:N,markerWidth:F,orient:"auto",refX:L,refY:N/2}),J=B(B("use"),{"xlink:href":"#"+e,transform:(f?
"rotate(180 "+F/2+" "+N/2+") ":"")+"scale("+F/E+","+N/E+")","stroke-width":(1/((F/E+N/E)/2)).toFixed(4)}),I.appendChild(J),p.defs.appendChild(I),G[k]=1);B(J,C);p=v*("diamond"!=x&&"oval"!=x);f?(r=c._.arrows.startdx*m||0,s=d.getTotalLength(g.path)-p*m):(r=p*m,s=d.getTotalLength(g.path)-(c._.arrows.enddx*m||0));C={};C["marker-"+n]="url(#"+k+")";if(s||r)C.d=Raphael.getSubpath(g.path,r,s);B(q,C);c._.arrows[n+"Path"]=e;c._.arrows[n+"Marker"]=k;c._.arrows[n+"dx"]=p;c._.arrows[n+"Type"]=x;c._.arrows[n+"String"]=
a}else f?(r=c._.arrows.startdx*m||0,s=d.getTotalLength(g.path)-r):(r=0,s=d.getTotalLength(g.path)-(c._.arrows.enddx*m||0)),c._.arrows[n+"Path"]&&B(q,{d:Raphael.getSubpath(g.path,r,s)}),delete c._.arrows[n+"Path"],delete c._.arrows[n+"Marker"],delete c._.arrows[n+"dx"],delete c._.arrows[n+"Type"],delete c._.arrows[n+"String"];for(C in G)G.hasOwnProperty(C)&&!G[C]&&(c=d._g.doc.getElementById(C))&&c.parentNode.removeChild(c)}},J={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],
". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},a=function(c,d,a){if(d=J[l(d).toLowerCase()]){var e=c.attrs["stroke-width"]||"1";a={round:e,square:e,butt:0}[c.attrs["stroke-linecap"]||a["stroke-linecap"]]||0;for(var p=[],n=d.length;n--;)p[n]=d[n]*e+(n%2?1:-1)*a;B(c.node,{"stroke-dasharray":p.join(",")})}},m=function(c,m){var w=c.node,e=c.attrs,p=w.style.visibility;w.style.visibility="hidden";for(var n in m)if(m.hasOwnProperty(n)&&d._availableAttrs.hasOwnProperty(n)){var q=
m[n];e[n]=q;switch(n){case "blur":c.blur(q);break;case "href":case "title":case "target":var g=w.parentNode;if("a"!=g.tagName.toLowerCase()){var A=B("a");g.insertBefore(A,w);A.appendChild(w);g=A}"target"==n?g.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==q?"new":q):g.setAttributeNS("http://www.w3.org/1999/xlink",n,q);break;case "cursor":w.style.cursor=q;break;case "transform":c.transform(q);break;case "arrow-start":W(c,q);break;case "arrow-end":W(c,q,1);break;case "clip-rect":g=l(q).split(V);
if(4==g.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var A=B("clipPath"),y=B("rect");A.id=d.createUUID();B(y,{x:g[0],y:g[1],width:g[2],height:g[3]});A.appendChild(y);c.paper.defs.appendChild(A);B(w,{"clip-path":"url(#"+A.id+")"});c.clip=y}!q&&(q=w.getAttribute("clip-path"))&&((q=d._g.doc.getElementById(q.replace(/(^url\(#|\)$)/g,"")))&&q.parentNode.removeChild(q),B(w,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(B(w,{d:q?e.path=d._pathToAbsolute(q):
"M0,0"}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&W(c,c._.arrows.startString),"endString"in c._.arrows&&W(c,c._.arrows.endString,1)));break;case "width":if(w.setAttribute(n,q),c._.dirty=1,e.fx)n="x",q=e.x;else break;case "x":e.fx&&(q=-e.x-(e.width||0));case "rx":if("rx"==n&&"rect"==c.type)break;case "cx":w.setAttribute(n,q);c.pattern&&P(c);c._.dirty=1;break;case "height":if(w.setAttribute(n,q),c._.dirty=1,e.fy)n="y",q=e.y;else break;case "y":e.fy&&(q=-e.y-(e.height||0));case "ry":if("ry"==
n&&"rect"==c.type)break;case "cy":w.setAttribute(n,q);c.pattern&&P(c);c._.dirty=1;break;case "r":"rect"==c.type?B(w,{rx:q,ry:q}):w.setAttribute(n,q);c._.dirty=1;break;case "src":"image"==c.type&&w.setAttributeNS("http://www.w3.org/1999/xlink","href",q);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)q/=C(E(c._.sx),E(c._.sy))||1;c.paper._vbSize&&(q*=c.paper._vbSize);w.setAttribute(n,q);e["stroke-dasharray"]&&a(c,e["stroke-dasharray"],m);c._.arrows&&("startString"in c._.arrows&&W(c,c._.arrows.startString),
"endString"in c._.arrows&&W(c,c._.arrows.endString,1));break;case "stroke-dasharray":a(c,q,m);break;case "fill":var x=l(q).match(d._ISURL);if(x){var A=B("pattern"),s=B("image");A.id=d.createUUID();B(A,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});B(s,{x:0,y:0,"xlink:href":x[1]});A.appendChild(s);(function(e){d._preload(x[1],function(){var d=this.offsetWidth,a=this.offsetHeight;B(e,{width:d,height:a});B(s,{width:d,height:a});c.paper.safari()})})(A);c.paper.defs.appendChild(A);B(w,{fill:"url(#"+
A.id+")"});c.pattern=A;c.pattern&&P(c);break}g=d.getRGB(q);if(!g.error)delete m.gradient,delete e.gradient,!d.is(e.opacity,"undefined")&&d.is(m.opacity,"undefined")&&B(w,{opacity:e.opacity}),!d.is(e["fill-opacity"],"undefined")&&d.is(m["fill-opacity"],"undefined")&&B(w,{"fill-opacity":e["fill-opacity"]});else if(("circle"==c.type||"ellipse"==c.type||"r"!=l(q).charAt())&&k(c,q)){if("opacity"in e||"fill-opacity"in e)if(g=d._g.doc.getElementById(w.getAttribute("fill").replace(/^url\(#|\)$/g,""))){var v=
g.getElementsByTagName("stop");B(v[v.length-1],{"stop-opacity":("opacity"in e?e.opacity:1)*("fill-opacity"in e?e["fill-opacity"]:1)})}e.gradient=q;e.fill="none";break}g.hasOwnProperty("opacity")&&B(w,{"fill-opacity":1<g.opacity?g.opacity/100:g.opacity});case "stroke":g=d.getRGB(q);w.setAttribute(n,g.hex);"stroke"==n&&g.hasOwnProperty("opacity")&&B(w,{"stroke-opacity":1<g.opacity?g.opacity/100:g.opacity});"stroke"==n&&c._.arrows&&("startString"in c._.arrows&&W(c,c._.arrows.startString),"endString"in
c._.arrows&&W(c,c._.arrows.endString,1));break;case "gradient":"circle"!=c.type&&"ellipse"!=c.type&&"r"==l(q).charAt()||k(c,q);break;case "opacity":e.gradient&&!e.hasOwnProperty("stroke-opacity")&&B(w,{"stroke-opacity":1<q?q/100:q});case "fill-opacity":if(e.gradient){(g=d._g.doc.getElementById(w.getAttribute("fill").replace(/^url\(#|\)$/g,"")))&&(v=g.getElementsByTagName("stop"),B(v[v.length-1],{"stop-opacity":q}));break}default:"font-size"==n&&(q=r(q,10)+"px"),g=n.replace(/(\-.)/g,function(e){return e.substring(1).toUpperCase()}),
w.style[g]=q,c._.dirty=1,w.setAttribute(n,q)}}f(c,m);w.style.visibility=p},f=function(c,a){if("text"==c.type&&(a.hasOwnProperty("text")||a.hasOwnProperty("font")||a.hasOwnProperty("font-size")||a.hasOwnProperty("x")||a.hasOwnProperty("y"))){var f=c.attrs,e=c.node,p=e.firstChild?r(d._g.doc.defaultView.getComputedStyle(e.firstChild,"").getPropertyValue("font-size"),10):10;if(a.hasOwnProperty("text")){for(f.text=a.text;e.firstChild;)e.removeChild(e.firstChild);for(var n=l(a.text).split("\n"),q=[],g,
m=0,k=n.length;m<k;m++)g=B("tspan"),m&&B(g,{dy:1.2*p,x:f.x}),g.appendChild(d._g.doc.createTextNode(n[m])),e.appendChild(g),q[m]=g}else for(q=e.getElementsByTagName("tspan"),m=0,k=q.length;m<k;m++)m?B(q[m],{dy:1.2*p,x:f.x}):B(q[0],{dy:0});B(e,{x:f.x,y:f.y});c._.dirty=1;e=c._getBBox();(f=f.y-(e.y+e.height/2))&&d.is(f,"finite")&&B(q[0],{dy:f})}},L=function(c,a){this[0]=this.node=c;c.raphael=!0;this.id=d._oid++;c.raphaelid=this.id;this.matrix=d.matrix();this.realPath=null;this.paper=a;this.attrs=this.attrs||
{};this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};!a.bottom&&(a.bottom=this);(this.prev=a.top)&&(a.top.next=this);a.top=this;this.next=null},x=d.el;L.prototype=x;x.constructor=L;d._engine.path=function(c,d){var a=B("path");d.canvas&&d.canvas.appendChild(a);a=new L(a,d);a.type="path";m(a,{fill:"none",stroke:"#000",path:c});return a};x.rotate=function(c,d,a){if(this.removed)return this;c=l(c).split(V);c.length-1&&(d=s(c[1]),a=s(c[2]));c=s(c[0]);null==a&&(d=a);if(null==d||null==a)a=this.getBBox(1),
d=a.x+a.width/2,a=a.y+a.height/2;this.transform(this._.transform.concat([["r",c,d,a]]));return this};x.scale=function(c,d,a,e){if(this.removed)return this;c=l(c).split(V);c.length-1&&(d=s(c[1]),a=s(c[2]),e=s(c[3]));c=s(c[0]);null==d&&(d=c);null==e&&(a=e);if(null==a||null==e)var p=this.getBBox(1);a=null==a?p.x+p.width/2:a;e=null==e?p.y+p.height/2:e;this.transform(this._.transform.concat([["s",c,d,a,e]]));return this};x.translate=function(c,d){if(this.removed)return this;c=l(c).split(V);c.length-1&&
(d=s(c[1]));c=s(c[0])||0;this.transform(this._.transform.concat([["t",c,+d||0]]));return this};x.transform=function(c){var a=this._;if(null==c)return a.transform;d._extractTransform(this,c);this.clip&&B(this.clip,{transform:this.matrix.invert()});this.pattern&&P(this);this.node&&B(this.node,{transform:this.matrix});if(1!=a.sx||1!=a.sy)c=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":c});return this};x.hide=function(){!this.removed&&this.paper.safari(this.node.style.display=
"none");return this};x.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};x.remove=function(){if(!this.removed&&this.node.parentNode){var c=this.paper;c.__set__&&c.__set__.exclude(this);Z.unbind("raphael.*.*."+this.id);this.gradient&&c.defs.removeChild(this.gradient);d._tear(this,c);"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.removeChild(this.node.parentNode):this.node.parentNode.removeChild(this.node);for(var a in this)this[a]=
"function"==typeof this[a]?d._removedFactory(a):null;this.removed=!0}};x._getBBox=function(){if("none"==this.node.style.display){this.show();var c=!0}var d={};try{d=this.node.getBBox()}catch(a){}finally{d=d||{}}c&&this.hide();return d};x.attr=function(c,a){if(this.removed)return this;if(null==c){var f={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(f[e]=this.attrs[e]);f.gradient&&"none"==f.fill&&(f.fill=f.gradient)&&delete f.gradient;f.transform=this._.transform;return f}if(null==a&&d.is(c,
"string")){if("fill"==c&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==c)return this._.transform;e=c.split(V);for(var f={},p=0,n=e.length;p<n;p++)c=e[p],c in this.attrs?f[c]=this.attrs[c]:d.is(this.paper.customAttributes[c],"function")?f[c]=this.paper.customAttributes[c].def:f[c]=d._availableAttrs[c];return n-1?f:f[e[0]]}if(null==a&&d.is(c,"array")){f={};p=0;for(n=c.length;p<n;p++)f[c[p]]=this.attr(c[p]);return f}null!=a?(f={},f[c]=a):null!=c&&d.is(c,"object")&&
(f=c);for(p in f)Z("raphael.attr."+p+"."+this.id,this,f[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(p)&&f.hasOwnProperty(p)&&d.is(this.paper.customAttributes[p],"function"))for(n in e=this.paper.customAttributes[p].apply(this,[].concat(f[p])),this.attrs[p]=f[p],e)e.hasOwnProperty(n)&&(f[n]=e[n]);m(this,f);return this};x.toFront=function(){if(this.removed)return this;"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.appendChild(this.node.parentNode):
this.node.parentNode.appendChild(this.node);var c=this.paper;c.top!=this&&d._tofront(this,c);return this};x.toBack=function(){if(this.removed)return this;var c=this.node.parentNode;"a"==c.tagName.toLowerCase()?c.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild):c.firstChild!=this.node&&c.insertBefore(this.node,this.node.parentNode.firstChild);d._toback(this,this.paper);return this};x.insertAfter=function(c){if(this.removed)return this;var a=c.node||c[c.length-
1].node;a.nextSibling?a.parentNode.insertBefore(this.node,a.nextSibling):a.parentNode.appendChild(this.node);d._insertafter(this,c,this.paper);return this};x.insertBefore=function(c){if(this.removed)return this;var a=c.node||c[0].node;a.parentNode.insertBefore(this.node,a);d._insertbefore(this,c,this.paper);return this};x.blur=function(c){if(0!==+c){var a=B("filter"),f=B("feGaussianBlur");this.attrs.blur=c;a.id=d.createUUID();B(f,{stdDeviation:+c||1.5});a.appendChild(f);this.paper.defs.appendChild(a);
this._blur=a;B(this.node,{filter:"url(#"+a.id+")"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};d._engine.circle=function(c,d,a,e){var p=B("circle");c.canvas&&c.canvas.appendChild(p);c=new L(p,c);c.attrs={cx:d,cy:a,r:e,fill:"none",stroke:"#000"};c.type="circle";B(p,c.attrs);return c};d._engine.rect=function(c,d,a,e,p,n){var f=B("rect");c.canvas&&c.canvas.appendChild(f);c=new L(f,c);c.attrs={x:d,y:a,
width:e,height:p,r:n||0,rx:n||0,ry:n||0,fill:"none",stroke:"#000"};c.type="rect";B(f,c.attrs);return c};d._engine.ellipse=function(c,d,a,e,p){var n=B("ellipse");c.canvas&&c.canvas.appendChild(n);c=new L(n,c);c.attrs={cx:d,cy:a,rx:e,ry:p,fill:"none",stroke:"#000"};c.type="ellipse";B(n,c.attrs);return c};d._engine.image=function(c,d,a,e,p,n){var f=B("image");B(f,{x:a,y:e,width:p,height:n,preserveAspectRatio:"none"});f.setAttributeNS("http://www.w3.org/1999/xlink","href",d);c.canvas&&c.canvas.appendChild(f);
c=new L(f,c);c.attrs={x:a,y:e,width:p,height:n,src:d};c.type="image";return c};d._engine.text=function(c,a,f,e){var p=B("text");c.canvas&&c.canvas.appendChild(p);c=new L(p,c);c.attrs={x:a,y:f,"text-anchor":"middle",text:e,font:d._availableAttrs.font,stroke:"none",fill:"#000"};c.type="text";m(c,c.attrs);return c};d._engine.setSize=function(c,d){this.width=c||this.width;this.height=d||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&
this.setViewBox.apply(this,this._viewBox);return this};d._engine.create=function(){var c=d._getContainer.apply(0,arguments),a=c&&c.container,f=c.x,e=c.y,p=c.width,c=c.height;if(!a)throw Error("SVG container not found.");var n=B("svg"),q,f=f||0,e=e||0,p=p||512,c=c||342;B(n,{height:c,version:1.1,width:p,xmlns:"http://www.w3.org/2000/svg"});1==a?(n.style.cssText="overflow:hidden;position:absolute;left:"+f+"px;top:"+e+"px",d._g.doc.body.appendChild(n),q=1):(n.style.cssText="overflow:hidden;position:relative",
a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n));a=new d._Paper;a.width=p;a.height=c;a.canvas=n;a.clear();a._left=a._top=0;q&&(a.renderfix=function(){});a.renderfix();return a};d._engine.setViewBox=function(d,a,f,e,p){Z("raphael.setViewBox",this,this._viewBox,[d,a,f,e,p]);var n=C(f/this.width,e/this.height),q=this.top,g=p?"meet":"xMinYMin",m;null==d?(this._vbSize&&(n=1),delete this._vbSize,m="0 0 "+this.width+" "+this.height):(this._vbSize=n,m=d+" "+a+" "+f+" "+e);for(B(this.canvas,{viewBox:m,
preserveAspectRatio:g});n&&q;)g="stroke-width"in q.attrs?q.attrs["stroke-width"]:1,q.attr({"stroke-width":g}),q._.dirty=1,q._.dirtyT=1,q=q.prev;this._viewBox=[d,a,f,e,!!p];return this};d.prototype.renderfix=function(){var d=this.canvas,a=d.style,f;try{f=d.getScreenCTM()||d.createSVGMatrix()}catch(e){f=d.createSVGMatrix()}d=-f.e%1;f=-f.f%1;if(d||f)d&&(this._left=(this._left+d)%1,a.left=this._left+"px"),f&&(this._top=(this._top+f)%1,a.top=this._top+"px")};d.prototype.clear=function(){d.eve("raphael.clear",
this);for(var c=this.canvas;c.firstChild;)c.removeChild(c.firstChild);this.bottom=this.top=null;(this.desc=B("desc")).appendChild(d._g.doc.createTextNode("Created with Rapha\u00ebl "+d.version));c.appendChild(this.desc);c.appendChild(this.defs=B("defs"))};d.prototype.remove=function(){Z("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var c in this)this[c]="function"==typeof this[c]?d._removedFactory(c):null};var N=d.st,F;for(F in x)x.hasOwnProperty(F)&&
!N.hasOwnProperty(F)&&(N[F]=function(d){return function(){var a=arguments;return this.forEach(function(f){f[d].apply(f,a)})}}(F))}(window.Raphael);
window.Raphael.vml&&function(d){var l=String,s=parseFloat,r=Math,v=r.round,C=r.max,E=r.min,I=r.abs,V=/[, ]+/,Z=d.eve,aa={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},G=/([clmz]),?([^clmz]*)/gi,B=/ progid:\S+Blur\([^\)]+\)/g,k=/-?[^,\s-]+/g,P={path:1,rect:1,image:1},W={circle:1,ellipse:1},J=function(e){var c=/[ahqstv]/ig,a=d._pathToAbsolute;l(e).match(c)&&(a=d._path2curve);c=/[clmz]/g;if(a==d._pathToAbsolute&&!l(e).match(c))return e=l(e).replace(G,function(e,d,c){var a=[],p="m"==d.toLowerCase(),
g=aa[d];c.replace(k,function(e){p&&2==a.length&&(g+=a+aa["m"==d?"l":"L"],a=[]);a.push(v(21600*e))});return g+a});var c=a(e),f;e=[];for(var g=0,m=c.length;g<m;g++){a=c[g];f=c[g][0].toLowerCase();"z"==f&&(f="x");for(var y=1,x=a.length;y<x;y++)f+=v(21600*a[y])+(y!=x-1?",":"");e.push(f)}return e.join(" ")},a=function(e,c,a){var f=d.matrix();f.rotate(-e,.5,.5);return{dx:f.x(c,a),dy:f.y(c,a)}},m=function(e,d,c,f,g,m){var l=e._,k=e.matrix,x=l.fillpos;e=e.node;var r=e.style,s=1,w="",v=21600/d,B=21600/c;r.visibility=
"hidden";if(d&&c){e.coordsize=I(v)+" "+I(B);r.rotation=m*(0>d*c?-1:1);if(m){var L=a(m,f,g);f=L.dx;g=L.dy}0>d&&(w+="x");0>c&&(w+=" y")&&(s=-1);r.flip=w;e.coordorigin=f*-v+" "+g*-B;if(x||l.fillsize)f=(f=e.getElementsByTagName("fill"))&&f[0],e.removeChild(f),x&&(L=a(m,k.x(x[0],x[1]),k.y(x[0],x[1])),f.position=L.dx*s+" "+L.dy*s),l.fillsize&&(f.size=l.fillsize[0]*I(d)+" "+l.fillsize[1]*I(c)),e.appendChild(f);r.visibility="visible"}};d.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+
this.version};var f=function(e,d,c){d=l(d).toLowerCase().split("-");c=c?"end":"start";for(var a=d.length,g="classic",f="medium",m="medium";a--;)switch(d[a]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":g=d[a];break;case "wide":case "narrow":m=d[a];break;case "long":case "short":f=d[a]}e=e.node.getElementsByTagName("stroke")[0];e[c+"arrow"]=g;e[c+"arrowlength"]=f;e[c+"arrowwidth"]=m},L=function(e,a){e.attrs=e.attrs||{};var n=e.node,q=e.attrs,g=n.style,k=P[e.type]&&
(a.x!=q.x||a.y!=q.y||a.width!=q.width||a.height!=q.height||a.cx!=q.cx||a.cy!=q.cy||a.rx!=q.rx||a.ry!=q.ry||a.r!=q.r),y=W[e.type]&&(q.cx!=a.cx||q.cy!=a.cy||q.r!=a.r||q.rx!=a.rx||q.ry!=a.ry),r;for(r in a)a.hasOwnProperty(r)&&(q[r]=a[r]);k&&(q.path=d._getPath[e.type](e),e._.dirty=1);a.href&&(n.href=a.href);a.title&&(n.title=a.title);a.target&&(n.target=a.target);a.cursor&&(g.cursor=a.cursor);"blur"in a&&e.blur(a.blur);if(a.path&&"path"==e.type||k)n.path=J(~l(q.path).toLowerCase().indexOf("r")?d._pathToAbsolute(q.path):
q.path),"image"==e.type&&(e._.fillpos=[q.x,q.y],e._.fillsize=[q.width,q.height],m(e,1,1,0,0,0));"transform"in a&&e.transform(a.transform);y&&(g=+q.cx,k=+q.cy,y=+q.rx||+q.r||0,r=+q.ry||+q.r||0,n.path=d.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",v(21600*(g-y)),v(21600*(k-r)),v(21600*(g+y)),v(21600*(k+r)),v(21600*g)));"clip-rect"in a&&(g=l(a["clip-rect"]).split(V),4==g.length&&(g[2]=+g[2]+ +g[0],g[3]=+g[3]+ +g[1],k=n.clipRect||d._g.doc.createElement("div"),y=k.style,y.clip=d.format("rect({1}px {2}px {3}px {0}px)",
g),n.clipRect||(y.position="absolute",y.top=0,y.left=0,y.width=e.paper.width+"px",y.height=e.paper.height+"px",n.parentNode.insertBefore(k,n),k.appendChild(n),n.clipRect=k)),a["clip-rect"]||n.clipRect&&(n.clipRect.style.clip="auto"));e.textpath&&(g=e.textpath.style,a.font&&(g.font=a.font),a["font-family"]&&(g.fontFamily='"'+a["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),a["font-size"]&&(g.fontSize=a["font-size"]),a["font-weight"]&&(g.fontWeight=a["font-weight"]),a["font-style"]&&
(g.fontStyle=a["font-style"]));"arrow-start"in a&&f(e,a["arrow-start"]);"arrow-end"in a&&f(e,a["arrow-end"],1);if(null!=a.opacity||null!=a["stroke-width"]||null!=a.fill||null!=a.src||null!=a.stroke||null!=a["stroke-width"]||null!=a["stroke-opacity"]||null!=a["fill-opacity"]||null!=a["stroke-dasharray"]||null!=a["stroke-miterlimit"]||null!=a["stroke-linejoin"]||null!=a["stroke-linecap"]){g=(g=n.getElementsByTagName("fill"))&&g[0];!g&&(g=c("fill"));"image"==e.type&&a.src&&(g.src=a.src);a.fill&&(g.on=
!0);if(null==g.on||"none"==a.fill||null===a.fill)g.on=!1;g.on&&a.fill&&((k=l(a.fill).match(d._ISURL))?(g.parentNode==n&&n.removeChild(g),g.rotate=!0,g.src=k[1],g.type="tile",y=e.getBBox(1),g.position=y.x+" "+y.y,e._.fillpos=[y.x,y.y],d._preload(k[1],function(){e._.fillsize=[this.offsetWidth,this.offsetHeight]})):(g.color=d.getRGB(a.fill).hex,g.src="",g.type="solid",d.getRGB(a.fill).error&&(e.type in{circle:1,ellipse:1}||"r"!=l(a.fill).charAt())&&x(e,a.fill,g)&&(q.fill="none",q.gradient=a.fill,g.rotate=
!1)));if("fill-opacity"in a||"opacity"in a)y=((+q["fill-opacity"]+1||2)-1)*((+q.opacity+1||2)-1)*((+d.getRGB(a.fill).o+1||2)-1),y=E(C(y,0),1),g.opacity=y,g.src&&(g.color="none");n.appendChild(g);g=n.getElementsByTagName("stroke")&&n.getElementsByTagName("stroke")[0];k=!1;!g&&(k=g=c("stroke"));if(a.stroke&&"none"!=a.stroke||a["stroke-width"]||null!=a["stroke-opacity"]||a["stroke-dasharray"]||a["stroke-miterlimit"]||a["stroke-linejoin"]||a["stroke-linecap"])g.on=!0;"none"!=a.stroke&&null!==a.stroke&&
null!=g.on&&0!=a.stroke&&0!=a["stroke-width"]||(g.on=!1);y=d.getRGB(a.stroke);g.on&&a.stroke&&(g.color=y.hex);y=((+q["stroke-opacity"]+1||2)-1)*((+q.opacity+1||2)-1)*((+y.o+1||2)-1);r=.75*(s(a["stroke-width"])||1);y=E(C(y,0),1);null==a["stroke-width"]&&(r=q["stroke-width"]);a["stroke-width"]&&(g.weight=r);r&&1>r&&(y*=r)&&(g.weight=1);g.opacity=y;a["stroke-linejoin"]&&(g.joinstyle=a["stroke-linejoin"]||"miter");g.miterlimit=a["stroke-miterlimit"]||8;a["stroke-linecap"]&&(g.endcap="butt"==a["stroke-linecap"]?
"flat":"square"==a["stroke-linecap"]?"square":"round");a["stroke-dasharray"]&&(y={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},g.dashstyle=y.hasOwnProperty(a["stroke-dasharray"])?y[a["stroke-dasharray"]]:"");k&&n.appendChild(g)}if("text"==e.type){e.paper.canvas.style.display="";n=e.paper.span;k=q.font&&q.font.match(/\d+(?:\.\d*)?(?=px)/);g=n.style;q.font&&(g.font=q.font);
q["font-family"]&&(g.fontFamily=q["font-family"]);q["font-weight"]&&(g.fontWeight=q["font-weight"]);q["font-style"]&&(g.fontStyle=q["font-style"]);k=s(q["font-size"]||k&&k[0])||10;g.fontSize=100*k+"px";e.textpath.string&&(n.innerHTML=l(e.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));n=n.getBoundingClientRect();e.W=q.w=(n.right-n.left)/100;e.H=q.h=(n.bottom-n.top)/100;e.X=q.x;e.Y=q.y+e.H/2;("x"in a||"y"in a)&&(e.path.v=d.format("m{0},{1}l{2},{1}",v(21600*q.x),
v(21600*q.y),v(21600*q.x)+1));n="x y text font font-family font-weight font-style font-size".split(" ");g=0;for(k=n.length;g<k;g++)if(n[g]in a){e._.dirty=1;break}switch(q["text-anchor"]){case "start":e.textpath.style["v-text-align"]="left";e.bbx=e.W/2;break;case "end":e.textpath.style["v-text-align"]="right";e.bbx=-e.W/2;break;default:e.textpath.style["v-text-align"]="center",e.bbx=0}e.textpath.style["v-text-kern"]=!0}},x=function(e,a,c){e.attrs=e.attrs||{};var f=Math.pow,g="linear",m=".5 .5";e.attrs.gradient=
a;a=l(a).replace(d._radial_gradient,function(e,a,d){g="radial";a&&d&&(a=s(a),d=s(d),.25<f(a-.5,2)+f(d-.5,2)&&(d=r.sqrt(.25-f(a-.5,2))*(2*(.5<d)-1)+.5),m=a+" "+d);return""});a=a.split(/\s*\-\s*/);if("linear"==g){var k=a.shift(),k=-s(k);if(isNaN(k))return null}a=d._parseDots(a);if(!a)return null;e=e.shape||e.node;if(a.length){e.removeChild(c);c.on=!0;c.method="none";c.color=a[0].color;c.color2=a[a.length-1].color;for(var x=[],w=0,v=a.length;w<v;w++)a[w].offset&&x.push(a[w].offset+" "+a[w].color);c.colors=
x.length?x.join():"0% "+c.color;"radial"==g?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=m,c.angle=0):(c.type="gradient",c.angle=(270-k)%360);e.appendChild(c)}return 1},N=function(e,a){this[0]=this.node=e;e.raphael=!0;this.id=d._oid++;e.raphaelid=this.id;this.Y=this.X=0;this.attrs={};this.paper=a;this.matrix=d.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};!a.bottom&&(a.bottom=this);(this.prev=a.top)&&(a.top.next=this);a.top=this;this.next=null},
F=d.el;N.prototype=F;F.constructor=N;F.transform=function(e){if(null==e)return this._.transform;var a=this.paper._viewBoxShift,c=a?"s"+[a.scale,a.scale]+"-1-1t"+[a.dx,a.dy]:"",f;a&&(f=e=l(e).replace(/\.{3}|\u2026/g,this._.transform||""));d._extractTransform(this,c+e);var a=this.matrix.clone(),g=this.skew;e=this.node;var c=~l(this.attrs.fill).indexOf("-"),k=!l(this.attrs.fill).indexOf("url(");a.translate(-.5,-.5);k||c||"image"==this.type?(g.matrix="1 0 0 1",g.offset="0 0",g=a.split(),c&&g.noRotation||
!g.isSimple?(e.style.filter=a.toFilter(),c=this.getBBox(),g=this.getBBox(1),a=c.x-g.x,c=c.y-g.y,e.coordorigin=-21600*a+" "+-21600*c,m(this,1,1,a,c,0)):(e.style.filter="",m(this,g.scalex,g.scaley,g.dx,g.dy,g.rotate))):(e.style.filter="",g.matrix=l(a),g.offset=a.offset());f&&(this._.transform=f);return this};F.rotate=function(e,a,d){if(this.removed)return this;if(null!=e){e=l(e).split(V);e.length-1&&(a=s(e[1]),d=s(e[2]));e=s(e[0]);null==d&&(a=d);if(null==a||null==d)d=this.getBBox(1),a=d.x+d.width/2,
d=d.y+d.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",e,a,d]]));return this}};F.translate=function(e,a){if(this.removed)return this;e=l(e).split(V);e.length-1&&(a=s(e[1]));e=s(e[0])||0;a=+a||0;this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=a);this.transform(this._.transform.concat([["t",e,a]]));return this};F.scale=function(a,d,c,f){if(this.removed)return this;a=l(a).split(V);a.length-1&&(d=s(a[1]),c=s(a[2]),f=s(a[3]),isNaN(c)&&(c=null),isNaN(f)&&(f=null));a=s(a[0]);null==d&&
(d=a);null==f&&(c=f);if(null==c||null==f)var g=this.getBBox(1);c=null==c?g.x+g.width/2:c;f=null==f?g.y+g.height/2:f;this.transform(this._.transform.concat([["s",a,d,c,f]]));this._.dirtyT=1;return this};F.hide=function(){!this.removed&&(this.node.style.display="none");return this};F.show=function(){!this.removed&&(this.node.style.display="");return this};F._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};F.remove=function(){if(!this.removed&&
this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this);d.eve.unbind("raphael.*.*."+this.id);d._tear(this,this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var a in this)this[a]="function"==typeof this[a]?d._removedFactory(a):null;this.removed=!0}};F.attr=function(a,c){if(this.removed)return this;if(null==a){var f={},m;for(m in this.attrs)this.attrs.hasOwnProperty(m)&&(f[m]=this.attrs[m]);f.gradient&&"none"==f.fill&&
(f.fill=f.gradient)&&delete f.gradient;f.transform=this._.transform;return f}if(null==c&&d.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;m=a.split(V);for(var f={},g=0,k=m.length;g<k;g++)a=m[g],a in this.attrs?f[a]=this.attrs[a]:d.is(this.paper.customAttributes[a],"function")?f[a]=this.paper.customAttributes[a].def:f[a]=d._availableAttrs[a];return k-1?f:f[m[0]]}if(this.attrs&&null==c&&d.is(a,"array")){f={};g=0;for(k=a.length;g<k;g++)f[a[g]]=this.attr(a[g]);
return f}null!=c&&(f={},f[a]=c);null==c&&d.is(a,"object")&&(f=a);for(g in f)Z("raphael.attr."+g+"."+this.id,this,f[g]);if(f){for(g in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(g)&&f.hasOwnProperty(g)&&d.is(this.paper.customAttributes[g],"function"))for(k in m=this.paper.customAttributes[g].apply(this,[].concat(f[g])),this.attrs[g]=f[g],m)m.hasOwnProperty(k)&&(f[k]=m[k]);f.text&&"text"==this.type&&(this.textpath.string=f.text);L(this,f)}return this};F.toFront=function(){!this.removed&&
this.node.parentNode.appendChild(this.node);this.paper&&this.paper.top!=this&&d._tofront(this,this.paper);return this};F.toBack=function(){if(this.removed)return this;this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),d._toback(this,this.paper));return this};F.insertAfter=function(a){if(this.removed)return this;a.constructor==d.st.constructor&&(a=a[a.length-1]);a.node.nextSibling?a.node.parentNode.insertBefore(this.node,a.node.nextSibling):
a.node.parentNode.appendChild(this.node);d._insertafter(this,a,this.paper);return this};F.insertBefore=function(a){if(this.removed)return this;a.constructor==d.st.constructor&&(a=a[0]);a.node.parentNode.insertBefore(this.node,a.node);d._insertbefore(this,a,this.paper);return this};F.blur=function(a){var c=this.node.runtimeStyle,f=c.filter,f=f.replace(B,"");0!==+a?(this.attrs.blur=a,c.filter=f+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+a||1.5)+")",c.margin=d.format("-{0}px 0 0 -{0}px",
v(+a||1.5))):(c.filter=f,c.margin=0,delete this.attrs.blur)};d._engine.path=function(a,d){var f=c("shape");f.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f.coordsize="21600 21600";f.coordorigin=d.coordorigin;var m=new N(f,d),g={fill:"none",stroke:"#000"};a&&(g.path=a);m.type="path";m.path=[];m.Path="";L(m,g);d.canvas.appendChild(f);g=c("skew");g.on=!0;f.appendChild(g);m.skew=g;m.transform("");return m};d._engine.rect=function(a,c,f,m,g,k){var l=d._rectPath(c,f,m,g,k);a=a.path(l);
var x=a.attrs;a.X=x.x=c;a.Y=x.y=f;a.W=x.width=m;a.H=x.height=g;x.r=k;x.path=l;a.type="rect";return a};d._engine.ellipse=function(a,d,c,f,g){a=a.path();a.X=d-f;a.Y=c-g;a.W=2*f;a.H=2*g;a.type="ellipse";L(a,{cx:d,cy:c,rx:f,ry:g});return a};d._engine.circle=function(a,d,c,f){a=a.path();a.X=d-f;a.Y=c-f;a.W=a.H=2*f;a.type="circle";L(a,{cx:d,cy:c,r:f});return a};d._engine.image=function(a,c,f,k,g,l){var x=d._rectPath(f,k,g,l);a=a.path(x).attr({stroke:"none"});var r=a.attrs,s=a.node,w=s.getElementsByTagName("fill")[0];
r.src=c;a.X=r.x=f;a.Y=r.y=k;a.W=r.width=g;a.H=r.height=l;r.path=x;a.type="image";w.parentNode==s&&s.removeChild(w);w.rotate=!0;w.src=c;w.type="tile";a._.fillpos=[f,k];a._.fillsize=[g,l];s.appendChild(w);m(a,1,1,0,0,0);return a};d._engine.text=function(a,f,m,k){var g=c("shape"),x=c("path"),r=c("textpath");f=f||0;m=m||0;k=k||"";x.v=d.format("m{0},{1}l{2},{1}",v(21600*f),v(21600*m),v(21600*f)+1);x.textpathok=!0;r.string=l(k);r.on=!0;g.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";
g.coordsize="21600 21600";g.coordorigin="0 0";var s=new N(g,a),w={fill:"#000",stroke:"none",font:d._availableAttrs.font,text:k};s.shape=g;s.path=x;s.textpath=r;s.type="text";s.attrs.text=l(k);s.attrs.x=f;s.attrs.y=m;s.attrs.w=1;s.attrs.h=1;L(s,w);g.appendChild(r);g.appendChild(x);a.canvas.appendChild(g);a=c("skew");a.on=!0;g.appendChild(a);s.skew=a;s.transform("");return s};d._engine.setSize=function(a,c){var f=this.canvas.style;this.width=a;this.height=c;a==+a&&(a+="px");c==+c&&(c+="px");f.width=
a;f.height=c;f.clip="rect(0 "+a+" "+c+" 0)";this._viewBox&&d._engine.setViewBox.apply(this,this._viewBox);return this};d._engine.setViewBox=function(a,c,f,m,g){d.eve("raphael.setViewBox",this,this._viewBox,[a,c,f,m,g]);var k=this.width,l=this.height,x=1/C(f/k,m/l),r,s;g&&(r=l/m,s=k/f,f*r<k&&(a-=(k-f*r)/2/r),m*s<l&&(c-=(l-m*s)/2/s));this._viewBox=[a,c,f,m,!!g];this._viewBoxShift={dx:-a,dy:-c,scale:x};this.forEach(function(a){a.transform("...")});return this};var c;d._engine.initWin=function(a){var d=
a.document;d.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!d.namespaces.rvml&&d.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),c=function(a){return d.createElement("<rvml:"+a+' class="rvml">')}}catch(f){c=function(a){return d.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}};d._engine.initWin(d._g.win);d._engine.create=function(){var a=d._getContainer.apply(0,arguments),c=a.container,f=a.height,m=a.width,g=a.x,a=a.y;if(!c)throw Error("VML container not found.");
var k=new d._Paper,l=k.canvas=d._g.doc.createElement("div"),x=l.style,g=g||0,a=a||0,m=m||512,f=f||342;k.width=m;k.height=f;m==+m&&(m+="px");f==+f&&(f+="px");k.coordsize="21600000 21600000";k.coordorigin="0 0";k.span=d._g.doc.createElement("span");k.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";l.appendChild(k.span);x.cssText=d.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",
m,f);1==c?(d._g.doc.body.appendChild(l),x.left=g+"px",x.top=a+"px",x.position="absolute"):c.firstChild?c.insertBefore(l,c.firstChild):c.appendChild(l);k.renderfix=function(){};return k};d.prototype.clear=function(){d.eve("raphael.clear",this);this.canvas.innerHTML="";this.span=d._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};d.prototype.remove=
function(){d.eve("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]="function"==typeof this[a]?d._removedFactory(a):null;return!0};var H=d.st,w;for(w in F)F.hasOwnProperty(w)&&!H.hasOwnProperty(w)&&(H[w]=function(a){return function(){var c=arguments;return this.forEach(function(d){d[a].apply(d,c)})}}(w))}(window.Raphael);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(d,l,s,r,v){return jQuery.easing[jQuery.easing.def](d,l,s,r,v)},easeInQuad:function(d,l,s,r,v){return r*(l/=v)*l+s},easeOutQuad:function(d,l,s,r,v){return-r*(l/=v)*(l-2)+s},easeInOutQuad:function(d,l,s,r,v){return 1>(l/=v/2)?r/2*l*l+s:-r/2*(--l*(l-2)-1)+s},easeInCubic:function(d,l,s,r,v){return r*(l/=v)*l*l+s},easeOutCubic:function(d,l,s,r,v){return r*((l=l/v-1)*l*l+1)+s},easeInOutCubic:function(d,l,s,r,v){return 1>(l/=v/2)?r/2*l*l*l+s:
r/2*((l-=2)*l*l+2)+s},easeInQuart:function(d,l,s,r,v){return r*(l/=v)*l*l*l+s},easeOutQuart:function(d,l,s,r,v){return-r*((l=l/v-1)*l*l*l-1)+s},easeInOutQuart:function(d,l,s,r,v){return 1>(l/=v/2)?r/2*l*l*l*l+s:-r/2*((l-=2)*l*l*l-2)+s},easeInQuint:function(d,l,s,r,v){return r*(l/=v)*l*l*l*l+s},easeOutQuint:function(d,l,s,r,v){return r*((l=l/v-1)*l*l*l*l+1)+s},easeInOutQuint:function(d,l,s,r,v){return 1>(l/=v/2)?r/2*l*l*l*l*l+s:r/2*((l-=2)*l*l*l*l+2)+s},easeInSine:function(d,l,s,r,v){return-r*Math.cos(l/
v*(Math.PI/2))+r+s},easeOutSine:function(d,l,s,r,v){return r*Math.sin(l/v*(Math.PI/2))+s},easeInOutSine:function(d,l,s,r,v){return-r/2*(Math.cos(Math.PI*l/v)-1)+s},easeInExpo:function(d,l,s,r,v){return 0==l?s:r*Math.pow(2,10*(l/v-1))+s},easeOutExpo:function(d,l,s,r,v){return l==v?s+r:r*(-Math.pow(2,-10*l/v)+1)+s},easeInOutExpo:function(d,l,s,r,v){return 0==l?s:l==v?s+r:1>(l/=v/2)?r/2*Math.pow(2,10*(l-1))+s:r/2*(-Math.pow(2,-10*--l)+2)+s},easeInCirc:function(d,l,s,r,v){return-r*(Math.sqrt(1-(l/=v)*
l)-1)+s},easeOutCirc:function(d,l,s,r,v){return r*Math.sqrt(1-(l=l/v-1)*l)+s},easeInOutCirc:function(d,l,s,r,v){return 1>(l/=v/2)?-r/2*(Math.sqrt(1-l*l)-1)+s:r/2*(Math.sqrt(1-(l-=2)*l)+1)+s},easeInElastic:function(d,l,s,r,v){d=1.70158;var C=0,E=r;if(0==l)return s;if(1==(l/=v))return s+r;C||(C=.3*v);E<Math.abs(r)?(E=r,d=C/4):d=C/(2*Math.PI)*Math.asin(r/E);return-(E*Math.pow(2,10*(l-=1))*Math.sin(2*(l*v-d)*Math.PI/C))+s},easeOutElastic:function(d,l,s,r,v){d=1.70158;var C=0,E=r;if(0==l)return s;if(1==
(l/=v))return s+r;C||(C=.3*v);E<Math.abs(r)?(E=r,d=C/4):d=C/(2*Math.PI)*Math.asin(r/E);return E*Math.pow(2,-10*l)*Math.sin(2*(l*v-d)*Math.PI/C)+r+s},easeInOutElastic:function(d,l,s,r,v){d=1.70158;var C=0,E=r;if(0==l)return s;if(2==(l/=v/2))return s+r;C||(C=.3*v*1.5);E<Math.abs(r)?(E=r,d=C/4):d=C/(2*Math.PI)*Math.asin(r/E);return 1>l?-.5*E*Math.pow(2,10*(l-=1))*Math.sin(2*(l*v-d)*Math.PI/C)+s:E*Math.pow(2,-10*(l-=1))*Math.sin(2*(l*v-d)*Math.PI/C)*.5+r+s},easeInBack:function(d,l,s,r,v,C){void 0==C&&
(C=1.70158);return r*(l/=v)*l*((C+1)*l-C)+s},easeOutBack:function(d,l,s,r,v,C){void 0==C&&(C=1.70158);return r*((l=l/v-1)*l*((C+1)*l+C)+1)+s},easeInOutBack:function(d,l,s,r,v,C){void 0==C&&(C=1.70158);return 1>(l/=v/2)?r/2*l*l*(((C*=1.525)+1)*l-C)+s:r/2*((l-=2)*l*(((C*=1.525)+1)*l+C)+2)+s},easeInBounce:function(d,l,s,r,v){return r-jQuery.easing.easeOutBounce(d,v-l,0,r,v)+s},easeOutBounce:function(d,l,s,r,v){return(l/=v)<1/2.75?7.5625*r*l*l+s:l<2/2.75?r*(7.5625*(l-=1.5/2.75)*l+.75)+s:l<2.5/2.75?r*
(7.5625*(l-=2.25/2.75)*l+.9375)+s:r*(7.5625*(l-=2.625/2.75)*l+.984375)+s},easeInOutBounce:function(d,l,s,r,v){return l<v/2?.5*jQuery.easing.easeInBounce(d,2*l,0,r,v)+s:.5*jQuery.easing.easeOutBounce(d,2*l-v,0,r,v)+.5*r+s}});(function(d,l,s){function r(){V=l[Z](function(){E.each(function(){var a=d(this),m=a.width(),f=a.height(),k=d.data(this,G);m===k.w&&f===k.h||a.trigger(aa,[k.w=m,k.h=f])});r()},I[B])}var v=function(a,m){var f=this;f.options=m;f.sliderContent=a;f.sliderInner=f.sliderContent.html();f.sliderContent.html("<div class='iviewSlider'>"+f.sliderInner+"</div>");f.slider=d(".iviewSlider",f.sliderContent);f.slider.css("position","relative");f.defs={slide:0,total:0,image:"",images:[],width:f.sliderContent.width(),
height:f.sliderContent.height(),timer:m.timer.toLowerCase(),lock:!1,paused:m.autoAdvance?!1:!0,time:m.pauseTime,easing:m.easing};f.disableSelection(f.slider[0]);f.slides=f.slider.children();f.slides.each(function(a){a=d(this);f.defs.images.push(a.data("iview:image"));a.data("iview:thumbnail")&&f.defs.images.push(a.data("iview:thumbnail"));a.css("display","none");if("video"==a.data("iview:type")){var c=a.children().eq(0),e=d('<div class="iview-video-show"><div class="iview-video-container"><a class="iview-video-close" title="'+
m.closeLabel+'">&#735;</a></div></div>');a.append(e);c.appendTo(d("div.iview-video-container",e));e.css({width:f.defs.width,height:f.defs.height,top:"-"+f.defs.height+"px"}).hide();a.addClass("iview-video").css({cursor:"pointer"})}f.defs.total++}).css({width:f.defs.width,height:f.defs.height});f.sliderContent.append('<div id="iview-preloader"><div></div></div>');var k=d("#iview-preloader",f.sliderContent),l=d("div",k);k.css({top:f.defs.height/2-k.height()/2+"px",left:f.defs.width/2-k.width()/2+"px"});
f.sliderContent.append('<div id="iview-timer"><div></div></div>');f.iviewTimer=d("#iview-timer",f.sliderContent);f.iviewTimer.hide();d(".iview-caption",f.slider).each(function(a){a=d(this);a.html('<div class="caption-contain">'+a.html()+"</div>")});m.startSlide=m.randomStart?Math.floor(Math.random()*f.defs.total):m.startSlide;m.startSlide=0<m.startSlide&&m.startSlide>=f.defs.total?f.defs.total-1:m.startSlide;f.defs.slide=m.startSlide;f.defs.image=f.slides.eq(f.defs.slide);f.defs.time=f.defs.image.data("iview:pausetime")?
f.defs.image.data("iview:pausetime"):m.pauseTime;f.defs.easing=f.defs.image.data("iview:easing")?f.defs.image.data("iview:easing"):m.easing;f.pieDegree=0;var r=m.timerPadding,s=m.timerDiameter,c=m.timerStroke;if(1<f.defs.total&&"bar"!=f.defs.timer){var c="360bar"==f.defs.timer?m.timerStroke:0,v=s+2*r+2*c,w=v,e=Raphael(f.iviewTimer[0],v,w);f.R=s/2;var p={stroke:m.timerBg,"stroke-width":c+2*r},n={stroke:m.timerColor,"stroke-width":c,"stroke-linecap":"round"},q={fill:m.timerColor,stroke:"none","stroke-width":0},
g={fill:m.timerBg,stroke:"none","stroke-width":0};e.customAttributes.arc=function(a,d){var e=1*a,f=(90-e)*Math.PI/180,g=s/2+r+c,m=s/2+r+c,k=g+d*Math.cos(f),f=m-d*Math.sin(f);return{path:360==a?[["M",g,m-d],["A",d,d,0,1,1,299.99,m-d]]:[["M",g,m-d],["A",d,d,0,+(180<e),1,k,f]]}};e.customAttributes.segment=function(a,c){var d=-90;c-=1;a=d+a;var e=180<a-d,f=s/2+r,g=s/2+r,d=d%360*Math.PI/180;a=a%360*Math.PI/180;return{path:[["M",f,g],["l",c*Math.cos(d),c*Math.sin(d)],["A",c,c,0,+e,1,f+c*Math.cos(a),g+c*
Math.sin(a)],["z"]]}};1<f.defs.total&&"pie"==f.defs.timer&&e.circle(f.R+r,f.R+r,f.R+r-1).attr(g);f.timerBgPath=e.path().attr(p);f.timerPath=e.path().attr(n);f.pieTimer=e.path().attr(q)}f.barTimer=d("div",f.iviewTimer);1<f.defs.total&&"360bar"==f.defs.timer&&f.timerBgPath.attr({arc:[359.9,f.R]});"bar"==f.defs.timer?(f.iviewTimer.css({opacity:m.timerOpacity,width:s,height:c,border:m.timerBarStroke+"px "+m.timerBarStrokeColor+" "+m.timerBarStrokeStyle,padding:r,background:m.timerBg}),f.barTimer.css({width:0,
height:c,background:m.timerColor,"float":"left"})):f.iviewTimer.css({opacity:m.timerOpacity,width:v,height:w});f.setTimerPosition();new C(f.defs.images,function(a){a*=10;l.stop().animate({width:a+"%"})},function(){l.stop().animate({width:"100%"},function(){k.remove();f.startSlider();m.onAfterLoad.call(this)})});f.sliderContent.bind("swipeleft",function(){if(f.defs.lock)return!1;f.cleanTimer();f.goTo("next")}).bind("swiperight",function(){if(f.defs.lock)return!1;f.cleanTimer();f.defs.slide-=2;f.goTo("prev")});
m.keyboardNav&&d(document).bind("keyup.iView",function(a){if("37"==a.keyCode){if(f.defs.lock)return!1;f.cleanTimer();f.defs.slide-=2;f.goTo("prev")}if("39"==a.keyCode){if(f.defs.lock)return!1;f.cleanTimer();f.goTo("next")}});f.iviewTimer.live("click",function(){f.iviewTimer.hasClass("paused")?f.playSlider():f.stopSlider()});f.sliderContent.bind("iView:pause",function(){f.stopSlider()});f.sliderContent.bind("iView:play",function(){f.playSlider()});f.sliderContent.bind("iView:previous",function(){if(f.defs.lock)return!1;
f.cleanTimer();f.defs.slide-=2;f.goTo("prev")});f.sliderContent.bind("iView:next",function(){if(f.defs.lock)return!1;f.cleanTimer();f.goTo("next")});f.sliderContent.bind("iView:goSlide",function(a,c){if(f.defs.lock||f.defs.slide==c||d(this).hasClass("active"))return!1;f.cleanTimer();f.slider.css("background",'url("'+f.defs.image.data("iview:image")+'") no-repeat');f.defs.slide=c-1;f.goTo("control")});f.sliderContent.bind("resize",function(){t=d(this);tW=t.width();tH=t.height();v=f.slider.width();
w=f.slider.height();if(f.defs.width!=tW){var a=tW/v,c=Math.round(f.defs.height*a);f.slider.css({"-webkit-transform-origin":"0 0","-moz-transform-origin":"0 0","-o-transform-origin":"0 0","-ms-transform-origin":"0 0","transform-origin":"0 0","-webkit-transform":"scale("+a+")","-moz-transform":"scale("+a+")","-o-transform":"scale("+a+")","-ms-transform":"scale("+a+")",transform:"scale("+a+")"});t.css({height:c});f.defs.width=tW;f.setTimerPosition()}});d(".iview-video",f.slider).click(function(a){var c=
d(this),c=d(".iview-video-show",c);d(a.target).hasClass("iview-video-close")||d(a.target).hasClass("iview-caption")||d(a.target).parents().hasClass("iview-caption")||(c.show().animate({top:0},1E3,"easeOutBounce"),f.sliderContent.trigger("iView:pause"))});d(".iview-video-close",f.slider).click(function(){var a=d(this).parents(".iview-video-show"),c=d("iframe",a),e=c.attr("src");c.removeAttr("src").attr("src",e);a.animate({top:"-"+f.defs.height+"px"},1E3,"easeOutBounce",function(){a.hide();f.sliderContent.trigger("iView:play")})})};
v.prototype={timer:null,startSlider:function(){var a=this,m=new Image;m.src=a.slides.eq(0).data("iview:image");imgWidth=m.width;imgWidth!=a.defs.width&&(a.defs.width=imgWidth,a.sliderContent.trigger("resize"));a.iviewTimer.show();a.slides.eq(a.defs.slide).css("display","block");a.slider.css("background",'url("'+a.defs.image.data("iview:image")+'") no-repeat');a.setCaption(a.options);a.iviewTimer.addClass("paused").attr("title",a.options.playLabel);a.options.autoAdvance&&1<a.defs.total&&(a.iviewTimer.removeClass("paused").attr("title",
a.options.pauseLabel),a.setTimer());a.options.directionNav&&(a.sliderContent.append('<div class="iview-directionNav"><a class="iview-prevNav" title="'+a.options.previousLabel+'">'+a.options.previousLabel+'</a><a class="iview-nextNav" title="'+a.options.nextLabel+'">'+a.options.nextLabel+"</a></div>"),d(".iview-directionNav",a.sliderContent).css({opacity:a.options.directionNavHoverOpacity}),a.sliderContent.hover(function(){d(".iview-directionNav",a.sliderContent).stop().animate({opacity:1},300)},function(){d(".iview-directionNav",
a.sliderContent).stop().animate({opacity:a.options.directionNavHoverOpacity},300)}),d("a.iview-prevNav",a.sliderContent).live("click",function(){if(a.defs.lock)return!1;a.cleanTimer();a.defs.slide-=2;a.goTo("prev")}),d("a.iview-nextNav",a.sliderContent).live("click",function(){if(a.defs.lock)return!1;a.cleanTimer();a.goTo("next")}));if(a.options.controlNav){var m='<div class="iview-controlNav">',f="";!a.options.directionNav&&a.options.controlNavNextPrev&&(m+='<a class="iview-controlPrevNav" title="'+
a.options.previousLabel+'">'+a.options.previousLabel+"</a>");for(var m=m+'<div class="iview-items"><ul>',k=0;k<a.defs.total;k++){var l=a.slides.eq(k),m=m+"<li>";a.options.controlNavThumbs?(l=l.data("iview:thumbnail")?l.data("iview:thumbnail"):l.data("iview:image"),m+='<a class="iview-control" rel="'+k+'"><img src="'+l+'" /></a>'):(l=l.data("iview:thumbnail")?l.data("iview:thumbnail"):l.data("iview:image"),m+='<a class="iview-control" rel="'+k+'">'+(k+1)+"</a>",a.options.controlNavTooltip&&(f+='<div rel="'+
k+'"><img src="'+l+'" /></div>'));m+="</li>"}m+="</ul></div>";!a.options.directionNav&&a.options.controlNavNextPrev&&(m+='<a class="iview-controlNextNav" title="'+a.options.nextLabel+'">'+a.options.nextLabel+"</a>");m+="</div>";!a.options.controlNavThumbs&&a.options.controlNavTooltip&&(m+='<div id="iview-tooltip"><div class="holder"><div class="container">'+f+"</div></div></div>");a.sliderContent.append(m);d(".iview-controlNav a.iview-control:eq("+a.defs.slide+")",a.sliderContent).addClass("active");
d("a.iview-controlPrevNav",a.sliderContent).live("click",function(){if(a.defs.lock)return!1;a.cleanTimer();a.defs.slide-=2;a.goTo("prev")});d("a.iview-controlNextNav",a.sliderContent).live("click",function(){if(a.defs.lock)return!1;a.cleanTimer();a.goTo("next")});d(".iview-controlNav a.iview-control",a.sliderContent).live("click",function(){if(a.defs.lock||d(this).hasClass("active"))return!1;a.cleanTimer();a.slider.css("background",'url("'+a.defs.image.data("iview:image")+'") no-repeat');a.defs.slide=
d(this).attr("rel")-1;a.goTo("control")});d(".iview-controlNav",a.sliderContent).css({opacity:a.options.controlNavHoverOpacity});a.sliderContent.hover(function(){d(".iview-controlNav",a.sliderContent).stop().animate({opacity:1},300);a.sliderContent.addClass("iview-hover")},function(){d(".iview-controlNav",a.sliderContent).stop().animate({opacity:a.options.controlNavHoverOpacity},300);a.sliderContent.removeClass("iview-hover")});var r=null;d(".iview-controlNav a.iview-control",a.sliderContent).hover(function(f){var c=
d(this);f=c.attr("rel");var m=d("#iview-tooltip",a.sliderContent),k=d("div.holder",m),e=c.offset().left-a.sliderContent.offset().left-m.outerWidth()/2+a.options.tooltipX,c=c.offset().top-a.sliderContent.offset().top-m.outerHeight()+a.options.tooltipY,l=d("div[rel="+f+"]");scrollLeft=f*l.width();m.stop().animate({left:e,top:c,opacity:1},300);m.not(":visible")&&m.fadeIn(300);k.stop().animate({scrollLeft:scrollLeft},300);clearTimeout(r)},function(f){var c=d("#iview-tooltip",a.sliderContent);r=setTimeout(function(){c.animate({opacity:0},
300,function(){c.hide()})},200)})}a.sliderContent.bind("mouseover.iView mousemove.iView",function(){a.options.pauseOnHover&&!a.defs.paused&&a.cleanTimer();a.sliderContent.addClass("iview-hover")}).bind("mouseout.iView",function(){a.options.pauseOnHover&&!a.defs.paused&&null==a.timer&&359>=a.pieDegree&&a.options.autoAdvance&&a.setTimer();a.sliderContent.removeClass("iview-hover")})},setCaption:function(){var a=this,m=a.slides.eq(a.defs.slide),f=0;d(".iview-caption",m).each(function(m){var k=d(this);
m=k.data("transition")?d.trim(k.data("transition").toLowerCase()):"fade";var l=k.data("speed")?k.data("speed"):a.options.captionSpeed,r=k.data("easing")?k.data("easing"):a.options.captionEasing,c="undefined"!=k.data("x")?k.data("x"):"center",s="undefined"!=k.data("y")?k.data("y"):"center",w=k.data("width")?k.data("width"):k.width(),e=k.data("height")?k.data("height"):k.height(),p=k.outerWidth(),n=k.outerHeight();"center"==c&&(c=a.defs.width/2-p/2);"center"==s&&(s=a.defs.height/2-n/2);var q=d(".caption-contain",
k);k.css({opacity:0});q.css({opacity:0,position:"relative",width:w,height:e});switch(m){case "wipedown":k.css({top:s-e,left:c});q.css({top:e+3*e,left:0});break;case "wipeup":k.css({top:s+e,left:c});q.css({top:e-3*e,left:0});break;case "wiperight":k.css({top:s,left:c-w});q.css({top:0,left:w+2*w});break;case "wipeleft":k.css({top:s,left:c+w});q.css({top:0,left:w-2*w});break;case "fade":k.css({top:s,left:c});q.css({top:0,left:0});break;case "expanddown":k.css({top:s,left:c,height:0});q.css({top:e+3*
e,left:0});break;case "expandup":k.css({top:s+e,left:c,height:0});q.css({top:e-3*e,left:0});break;case "expandright":k.css({top:s,left:c,width:0});q.css({top:0,left:w+2*w});break;case "expandleft":k.css({top:s,left:c+w,width:0}),q.css({top:0,left:w-2*w})}setTimeout(function(){k.animate({opacity:a.options.captionOpacity,top:s,left:c,width:w,height:e},l,r,function(){})},f);setTimeout(function(){q.animate({opacity:a.options.captionOpacity,top:0,left:0},l,r)},f+100);f+=250})},processTimer:function(){if("360bar"==
this.defs.timer){var a=0==this.pieDegree?0:this.pieDegree+.9;this.timerPath.attr({arc:[a,this.R]})}else"pie"==this.defs.timer?(a=0==this.pieDegree?0:this.pieDegree+.9,this.pieTimer.attr({segment:[a,this.R]})):this.barTimer.css({width:this.pieDegree/360*100+"%"});this.pieDegree+=3},transitionEnd:function(a){a.options.onAfterChange.call(this);a.defs.lock=!1;a.slides.css("display","none");a.slides.eq(a.defs.slide).show();a.slider.css("background",'url("'+a.defs.image.data("iview:image")+'") no-repeat');
d(".iview-strip, .iview-block",a.slider).remove();a.defs.time=a.defs.image.data("iview:pausetime")?a.defs.image.data("iview:pausetime"):a.options.pauseTime;a.iviewTimer.animate({opacity:a.options.timerOpacity});a.pieDegree=0;a.processTimer();a.setCaption(a.options);null!=a.timer||a.defs.paused||(a.timer=setInterval(function(){a.timerCall(a)},a.defs.time/120))},addStrips:function(a,m){m=m?m:this.options;for(var f=0;f<m.strips;f++){var k=Math.round(this.slider.width()/m.strips),l=Math.round(this.slider.height()/
m.strips),r="-"+(k+f*k-k)+"px 0%",s=a?l*f+"px":"0px",c=a?"0px":k*f+"px";a&&(r="0% -"+(l+f*l-l)+"px");f==m.strips-1?(k=a?"0px":this.slider.width()-k*f+"px",l=a?this.slider.height()-l*f+"px":"0px"):(k=a?"0px":k+"px",l=a?l+"px":"0px");r=d('<div class="iview-strip"></div>').css({width:k,height:l,top:s,left:c,background:'url("'+this.defs.image.data("iview:image")+'") no-repeat '+r,opacity:0});this.slider.append(r)}},addBlocks:function(){for(var a=Math.round(this.slider.width()/this.options.blockCols),
m=Math.round(this.slider.height()/this.options.blockRows),f=0;f<this.options.blockRows;f++)for(var k=0;k<this.options.blockCols;k++){var l="-"+(a+k*a-a)+"px -"+(m+f*m-m)+"px";k==this.options.blockCols-1&&this.slider.width();l=d('<div class="iview-block"></div>').css({width:a+"px",height:m+"px",top:f*m+"px",left:k*a+"px",background:'url("'+this.defs.image.data("iview:image")+'") no-repeat '+l,opacity:0});this.slider.append(l)}},runTransition:function(a){var m=this;switch(a){case "strip-up-right":case "strip-up-left":m.addStrips();
var f=0,k=0,l=d(".iview-strip",m.slider);"strip-up-left"==a&&(l=d(".iview-strip",m.slider).reverse());l.each(function(){var a=d(this);a.css({top:"",bottom:"0px"});setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){k==m.options.strips-1&&m.transitionEnd(m);k++})},100+f);f+=50});break;case "strip-down":case "strip-down-right":case "strip-down-left":m.addStrips();var k=f=0,l=d(".iview-strip",m.slider);"strip-down-left"==a&&(l=d(".iview-strip",
m.slider).reverse());l.each(function(){var a=d(this);a.css({bottom:"",top:"0px"});setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){k==m.options.strips-1&&m.transitionEnd(m);k++})},100+f);f+=50});break;case "strip-left-right":case "strip-left-right-up":case "strip-left-right-down":m.addStrips(!0);var r=k=f=0,l=d(".iview-strip",m.slider);"strip-left-right-down"==a&&(l=d(".iview-strip",m.slider).reverse());l.each(function(){var a=d(this);
0==k?(a.css({right:"",left:"0px"}),k++):(a.css({left:"",right:"0px"}),k=0);setTimeout(function(){a.animate({width:"100%",opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){r==m.options.strips-1&&m.transitionEnd(m);r++})},100+f);f+=50});break;case "strip-up-down":case "strip-up-down-right":case "strip-up-down-left":m.addStrips();r=k=f=0;l=d(".iview-strip",m.slider);"strip-up-down-left"==a&&(l=d(".iview-strip",m.slider).reverse());l.each(function(){var a=d(this);0==k?(a.css({bottom:"",
top:"0px"}),k++):(a.css({top:"",bottom:"0px"}),k=0);setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){r==m.options.strips-1&&m.transitionEnd(m);r++})},100+f);f+=50});break;case "left-curtain":case "right-curtain":case "top-curtain":case "bottom-curtain":"left-curtain"==a||"right-curtain"==a?m.addStrips():m.addStrips(!0);k=f=0;l=d(".iview-strip",m.slider);if("right-curtain"==a||"bottom-curtain"==a)l=d(".iview-strip",m.slider).reverse();
l.each(function(){var c=d(this),e=c.width(),g=c.height();"left-curtain"==a||"right-curtain"==a?c.css({top:"0px",height:"100%",width:"0px"}):c.css({left:"0px",height:"0px",width:"100%"});setTimeout(function(){"left-curtain"==a||"right-curtain"==a?c.animate({width:e,opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){k==m.options.strips-1&&m.transitionEnd(m);k++}):c.animate({height:g,opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){k==m.options.strips-1&&m.transitionEnd(m);
k++})},100+f);f+=50});break;case "strip-up-right":case "strip-up-left":m.addStrips();k=f=0;l=d(".iview-strip",m.slider);"strip-up-left"==a&&(l=d(".iview-strip",m.slider).reverse());l.each(function(){var a=d(this);a.css({bottom:"0px"});setTimeout(function(){a.animate({height:"100%",opacity:"1.0"},m.options.animationSpeed,m.defs.easing,function(){k==m.options.strips-1&&m.transitionEnd(m);k++})},100+f);f+=50});break;case "strip-left-fade":case "strip-right-fade":case "strip-top-fade":case "strip-bottom-fade":"strip-left-fade"==
a||"strip-right-fade"==a?m.addStrips():m.addStrips(!0);k=f=0;l=d(".iview-strip",m.slider);if("strip-right-fade"==a||"strip-bottom-fade"==a)l=d(".iview-strip",m.slider).reverse();l.each(function(){var c=d(this),e=c.width(),g=c.height();"strip-left-fade"==a||"strip-right-fade"==a?c.css({top:"0px",height:"100%",width:e}):c.css({left:"0px",height:g,width:"100%"});setTimeout(function(){c.animate({opacity:"1.0"},1.7*m.options.animationSpeed,m.defs.easing,function(){k==m.options.strips-1&&m.transitionEnd(m);
k++})},100+f);f+=35});break;case "slide-in-up":case "slide-in-down":opts={strips:1};m.addStrips(!1,opts);var l=d(".iview-strip:first",m.slider),s=0,s="slide-in-up"==a?"-"+m.defs.height+"px":m.defs.height+"px";l.css({top:s,height:"100%",width:m.defs.width});l.animate({top:"0px",opacity:1},2*m.options.animationSpeed,m.defs.easing,function(){m.transitionEnd(m)});break;case "zigzag-top":case "zigzag-bottom":case "zigzag-grow-top":case "zigzag-grow-bottom":case "zigzag-drop-top":case "zigzag-drop-bottom":m.addBlocks();
for(var c=m.options.blockCols*m.options.blockRows,f=0,v=[],l=d(".iview-block",m.slider),w=0;w<m.options.blockRows;w++){var s=w*m.options.blockCols,e=(w+1)*m.options.blockCols;if(1==w%2)for(var p=e-1;p>=s;p--)v.push(d(l[p]));else for(p=s;p<e;p++)v.push(d(l[p]))}"zigzag-bottom"!=a&&"zigzag-grow-bottom"!=a&&"zigzag-drop-bottom"!=a||v.reverse();l.each(function(e){var g=d(v[e]),k=g.height(),l=g.width(),n=g.css("top");"zigzag-grow-top"==a||"zigzag-grow-bottom"==a?g.width(0).height(0):"zigzag-drop-top"!=
a&&"zigzag-drop-bottom"!=a||g.css({top:"-=50"});setTimeout(function(){"zigzag-grow-top"==a||"zigzag-grow-bottom"==a?g.animate({opacity:"1",height:k,width:l},m.options.animationSpeed,m.defs.easing,function(){e==c-1&&m.transitionEnd(m)}):"zigzag-drop-top"==a||"zigzag-drop-bottom"==a?g.animate({top:n,opacity:"1"},m.options.animationSpeed,m.defs.easing,function(){e==c-1&&m.transitionEnd(m)}):g.animate({opacity:"1"},2*m.options.animationSpeed,"easeInOutExpo",function(){e==c-1&&m.transitionEnd(m)})},100+
f);f+=20});break;case "block-fade":case "block-fade-reverse":case "block-expand":case "block-expand-reverse":m.addBlocks();var c=m.options.blockCols*m.options.blockRows,n=f=k=0,q=0,v=[];v[n]=[];l=d(".iview-block",m.slider);if("block-fade-reverse"==a||"block-expand-reverse"==a)l=d(".iview-block",m.slider).reverse();l.each(function(){v[n][q]=d(this);q++;q==m.options.blockCols&&(n++,q=0,v[n]=[])});for(p=0;p<2*m.options.blockCols;p++){for(var g=p,w=0;w<m.options.blockRows;w++)0<=g&&g<m.options.blockCols&&
function(){var e=d(v[w][g]),l=e.width(),n=e.height();"block-expand"!=a&&"block-expand-reverse"!=a||e.width(0).height(0);setTimeout(function(){e.animate({opacity:"1",width:l,height:n},m.options.animationSpeed/1.3,m.defs.easing,function(){k==c-1&&m.transitionEnd(m);k++})},100+f)}(),g--;f+=100}break;case "block-random":case "block-expand-random":case "block-drop-random":m.addBlocks();c=m.options.blockCols*m.options.blockRows;f=0;l=m.shuffle(d(".iview-block",m.slider));l.each(function(e){var g=d(this),
k=g.height(),l=g.width(),n=g.css("top");"block-expand-random"==a&&g.width(0).height(0);"block-drop-random"==a&&g.css({top:"-=50"});setTimeout(function(){g.animate({top:n,opacity:"1",height:k,width:l},m.options.animationSpeed,m.defs.easing,function(){e==c-1&&m.transitionEnd(m)})},100+f);f+=20});break;default:opts={strips:1},m.addStrips(!1,opts),l=d(".iview-strip:first",m.slider),l.css({height:"100%",width:m.defs.width}),"slide-in-right"==a?l.css({height:"100%",width:m.defs.width,left:m.defs.width+
"px",right:""}):"slide-in-left"==a&&l.css({left:"-"+m.defs.width+"px"}),l.animate({left:"0px",opacity:1},2*m.options.animationSpeed,m.defs.easing,function(){m.transitionEnd(m)})}},shuffle:function(a){a=a.slice();for(var d=a.length,f=d;f--;){var k=parseInt(Math.random()*d),l=a[f];a[f]=a[k];a[k]=l}return a},timerCall:function(a){a.processTimer();360<=a.pieDegree&&(a.cleanTimer(),a.goTo(!1))},setTimer:function(){var a=this;a.timer=setInterval(function(){a.timerCall(a)},a.defs.time/120)},cleanTimer:function(){clearInterval(this.timer);
this.timer=null},goTo:function(a){this.defs&&this.defs.slide==this.defs.total-1&&this.options.onLastSlide.call(this);this.cleanTimer();this.iviewTimer.animate({opacity:0});this.options.onBeforeChange.call(this);a?"prev"!=a&&"next"!=a||this.slider.css("background",'url("'+this.defs.image.data("iview:image")+'") no-repeat'):this.slider.css("background",'url("'+this.defs.image.data("iview:image")+'") no-repeat');this.defs.slide++;this.defs.slide==this.defs.total&&(this.defs.slide=0,this.options.onSlideShowEnd.call(this));
0>this.defs.slide&&(this.defs.slide=this.defs.total-1);this.defs.image=this.slides.eq(this.defs.slide);this.options.controlNav&&(d(".iview-controlNav a.iview-control",this.sliderContent).removeClass("active"),d(".iview-controlNav a.iview-control:eq("+this.defs.slide+")",this.sliderContent).addClass("active"));a=this.options.fx;"random"==this.options.fx.toLowerCase()&&(a="left-curtain right-curtain top-curtain bottom-curtain strip-down-right strip-down-left strip-up-right strip-up-left strip-up-down strip-up-down-left strip-left-right strip-left-right-down slide-in-right slide-in-left slide-in-up slide-in-down fade block-random block-fade block-fade-reverse block-expand block-expand-reverse block-expand-random zigzag-top zigzag-bottom zigzag-grow-top zigzag-grow-bottom zigzag-drop-top zigzag-drop-bottom strip-left-fade strip-right-fade strip-top-fade strip-bottom-fade block-drop-random".split(" "),
a=a[Math.floor(Math.random()*(a.length+1))],a==s&&(a="fade"),a=d.trim(a.toLowerCase()));-1!=this.options.fx.indexOf(",")&&(a=this.options.fx.split(","),a=a[Math.floor(Math.random()*a.length)],a==s&&(a="fade"),a=d.trim(a.toLowerCase()));this.defs.image.data("iview:transition")&&(a=this.defs.image.data("iview:transition").split(","),a=a[Math.floor(Math.random()*a.length)],a=d.trim(a.toLowerCase()));this.defs.easing=this.defs.image.data("iview:easing")?this.defs.image.data("iview:easing"):this.options.easing;
this.defs.lock=!0;this.runTransition(a)},playSlider:function(){null==this.timer&&this.defs.paused&&(this.iviewTimer.removeClass("paused").attr("title",this.options.pauseLabel),this.setTimer(),this.defs.paused=!1,this.options.onPlay.call(this))},stopSlider:function(){this.iviewTimer.addClass("paused").attr("title",this.options.playLabel);this.cleanTimer();this.defs.paused=!0;this.options.onPause.call(this)},setTimerPosition:function(){for(var a=this.options.timerPosition.toLowerCase().split("-"),d=
0;d<a.length;d++)"top"==a[d]?this.iviewTimer.css({top:this.options.timerY+"px",bottom:""}):"middle"==a[d]?this.iviewTimer.css({top:this.options.timerY+this.defs.height/2-this.options.timerDiameter/2+"px",bottom:""}):"bottom"==a[d]?this.iviewTimer.css({bottom:this.options.timerY+"px",top:""}):"left"==a[d]?this.iviewTimer.css({left:this.options.timerX+"px",right:""}):"center"==a[d]?this.iviewTimer.css({left:this.options.timerX+this.defs.width/2-this.options.timerDiameter/2+"px",right:""}):"right"==
a[d]&&this.iviewTimer.css({right:this.options.timerX+"px",left:""})},disableSelection:function(a){"undefined"!=typeof a.onselectstart?a.onselectstart=function(){return!1}:"undefined"!=typeof a.style.MozUserSelect?a.style.MozUserSelect="none":"undefined"!=typeof a.style.webkitUserSelect?a.style.webkitUserSelect="none":"undefined"!=typeof a.style.userSelect?a.style.userSelect="none":a.onmousedown=function(){return!1};a.unselectable="on"},isTouch:function(){return!!("ontouchstart"in l)}};var C=function(a,
d,f){this.m_pfnPercent=d;this.m_pfnFinished=f;this.m_nProcessed=this.m_nLoaded=0;this.m_aImages=[];this.m_nICount=a.length;for(d=0;d<a.length;d++)this.Preload(a[d])};C.prototype={Preload:function(a){var d=new Image;this.m_aImages.push(d);d.onload=C.prototype.OnLoad;d.onerror=C.prototype.OnError;d.onabort=C.prototype.OnAbort;d.oImagePreload=this;d.bLoaded=!1;d.source=a;d.src=a},OnComplete:function(){this.m_nProcessed++;this.m_nProcessed==this.m_nICount?this.m_pfnFinished():this.m_pfnPercent(Math.round(this.m_nProcessed/
this.m_nICount*10))},OnLoad:function(){this.bLoaded=!0;this.oImagePreload.m_nLoaded++;this.oImagePreload.OnComplete()},OnError:function(){this.bError=!0;this.oImagePreload.OnComplete()},OnAbort:function(){this.bAbort=!0;this.oImagePreload.OnComplete()}};d.fn.iView=function(a){a=jQuery.extend({fx:"random",easing:"easeOutQuad",strips:20,blockCols:10,blockRows:5,animationSpeed:500,pauseTime:5E3,startSlide:0,directionNav:!0,directionNavHoverOpacity:.6,controlNav:!1,controlNavNextPrev:!0,controlNavHoverOpacity:.6,
controlNavThumbs:!1,controlNavTooltip:!0,captionSpeed:500,captionEasing:"easeInOutSine",captionOpacity:1,autoAdvance:!0,keyboardNav:!0,touchNav:!0,pauseOnHover:!1,nextLabel:"Next",previousLabel:"Previous",playLabel:"Play",pauseLabel:"Pause",closeLabel:"Close",randomStart:!1,timer:"Pie",timerBg:"#000",timerColor:"#EEE",timerOpacity:.5,timerDiameter:30,timerPadding:4,timerStroke:3,timerBarStroke:1,timerBarStrokeColor:"#EEE",timerBarStrokeStyle:"solid",timerPosition:"top-right",timerX:10,timerY:10,tooltipX:5,
tooltipY:-5,onBeforeChange:function(){},onAfterChange:function(){},onAfterLoad:function(){},onLastSlide:function(){},onSlideShowEnd:function(){},onPause:function(){},onPlay:function(){}},a);d(this).each(function(){var k=d(this);new v(k,a)})};d.fn.reverse=[].reverse;var E=d([]),I=d.resize=d.extend(d.resize,{}),V,Z="setTimeout",aa="resize",G=aa+"-special-event",B="delay";I[B]=250;I.throttleWindow=!0;d.event.special[aa]={setup:function(){if(!I.throttleWindow&&this[Z])return!1;var a=d(this);E=E.add(a);
d.data(this,G,{w:a.width(),h:a.height()});1===E.length&&r()},teardown:function(){if(!I.throttleWindow&&this[Z])return!1;var a=d(this);E=E.not(a);a.removeData(G);E.length||clearTimeout(V)},add:function(a){function k(a,m,l){var r=d(this),c=d.data(this,G);c.w=m!==s?m:r.width();c.h=l!==s?l:r.height();f.apply(this,arguments)}if(!I.throttleWindow&&this[Z])return!1;var f;if(d.isFunction(a))return f=a,k;f=a.handler;a.handler=k}};var k=!!("ontouchstart"in l),P=k?"touchstart":"mousedown",W=k?"touchend":"mouseup",
J=k?"touchmove":"mousemove";d.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1E3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var a=d(this);a.bind(P,function(k){function f(a){if(r){var c=a.originalEvent.touches?a.originalEvent.touches[0]:a;v={time:(new Date).getTime(),coords:[c.pageX,c.pageY]};Math.abs(r.coords[0]-v.coords[0])>d.event.special.swipe.scrollSupressionThreshold&&a.preventDefault()}}var l=k.originalEvent.touches?k.originalEvent.touches[0]:
k,r={time:(new Date).getTime(),coords:[l.pageX,l.pageY],origin:d(k.target)},v;a.bind(J,f).one(W,function(k){a.unbind(J,f);r&&v&&v.time-r.time<d.event.special.swipe.durationThreshold&&Math.abs(r.coords[0]-v.coords[0])>d.event.special.swipe.horizontalDistanceThreshold&&Math.abs(r.coords[1]-v.coords[1])<d.event.special.swipe.verticalDistanceThreshold&&r.origin.trigger("swipe").trigger(r.coords[0]>v.coords[0]?"swipeleft":"swiperight");r=v=s})})}};d.each({swipeleft:"swipe",swiperight:"swipe"},function(a,
k){d.event.special[a]={setup:function(){d(this).bind(k,d.noop)}}})})(jQuery,this);
</script>
		<script>
			$(document).ready(function(){
				$('#iview').iView({
					strips: 20,
					blockCols: 20,
					blockRows: 3,
					pauseTime: 7000,
					pauseOnHover: true,
					directionNavHoverOpacity: 0,
					timer: "Bar",
					timerDiameter: 120,
					timerPadding: 3,
					timerStroke: 4,
					timerBarStroke: 0,
					timerColor: "#0F0",
					timerPosition: "bottom-right"
				});
				$('#iview2').iView({
					pauseTime: 5000,
					pauseOnHover: true,
					directionNavHoverOpacity: 0,
					controlNav: true,
					controlNavNextPrev: false,
					controlNavTooltip: false,
					timer: "360Bar",
					timerDiameter: 30,
					timerPadding: 3,
					timerStroke: 4,
					timerBarStroke: 0,
					timerColor: "#0F0",
					timerPosition: "top-right"
				});
			});
		</script>
</head>
	<body>
<div id="cont">
		<div id="header">
			<div class="container">
				<h1><a href="<?=$siteurl?>">iView&trade;</a></h1>   
				<div id="nav">
					<ul>
						<li><a href="http://meftun-mede.googlecode.com/svn/trunk/iView_Slider_1.html">Normal </a></li>
						<li><a href="http://meftun-mede.googlecode.com/svn/trunk/iView_Slider_2.html">Çoklu</a></li>
						<li><a href="http://meftun-mede.googlecode.com/svn/trunk/iView_Slider_3.html">API ile normal</a></li>
						<li><a href="http://meftun-mede.googlecode.com/svn/trunk/iView_Slider_4.html">Duyarlı</a></li>
						<li class="active"><a href="http://meftun-mede.googlecode.com/svn/trunk/iView_Slider_5.html">Bannerler</a></li>
						<li><a href="http://meftun-mede.googlecode.com/svn/trunk/iView_Slider_Dokuman.html">Döküman</a></li>
					</ul>
				</div>
			</div>
		</div>
	<div class="container">
		<div id="iview" class="iview">
			<div data-iview:image="https://lh5.googleusercontent.com/-voScBn6tVYc/U5yG9iA_mHI/AAAAAAAAA00/lsxCCAquBVY/w728-h90-no/728x90_1.jpg"></div>
			<div data-iview:image="https://lh5.googleusercontent.com/-OeKJQkQauMk/U5yG9mxZI2I/AAAAAAAAA0o/HOuiOkBAc_M/w728-h90-no/728x90_2.jpg"></div>
			<div data-iview:image="https://lh5.googleusercontent.com/-KKzA4hZBxT8/U5yG9hZTw_I/AAAAAAAAA04/MFJZjq8ybEw/w728-h90-no/728x90_3.jpg"></div>
		</div>	
		<div id="iview2" class="iview">
			<div data-iview:image="https://lh3.googleusercontent.com/-ackBKqNy3_c/U5yG46wzJzI/AAAAAAAAA0Y/CqD_46fy9OA/w300-h600-no/300x600_1.jpg"></div>
			<div data-iview:image="https://lh4.googleusercontent.com/-uZlWsOR9Vpw/U5yG4_DuKRI/AAAAAAAAA0U/G2ygW60MUuQ/w300-h600-no/300x600_2.jpg"></div>
			<div data-iview:image="https://lh5.googleusercontent.com/-8Sju2fXcxxE/U5yG40hJLRI/AAAAAAAAA0c/SQ-76qMm0uM/w300-h600-no/300x600_3.jpg"></div>
		</div>
	</div>
	<div class="copy">Made by <a href="http://iprodev.com/">Hemn Chawroka</a>.<br>Copyright &copy 2012. All rights reserved.</div>
	<div class="separator" style="clear: both; text-align: center;">
		<img src="http://1.bp.blogspot.com/-rVsNPNHIX8E/UAgNcPyWbtI/AAAAAAAAAHo/-LczSB2OxCE/s400/Angel_Mef.png" border="0" height="87" width="225"/><br>
        <div class="mef a">
        <p>&#169; 2014 <a href='http://MeftunMede.Blogspot.com'>MeftunMede.Blogspot.com </a></p>
        </div>
		</div>
</div>
	</body>
</html>